Struct ForeignToken
pub struct ForeignToken { /* private fields */ }Expand description
A ResumeToken that no StoreSyncPeer minted.
Stop: the token came from somewhere else — another
kind of peer, a corrupted cursor column, a hand-edited request — and the
same token fails the same way on every retry. The remedy is to drop it and
pull from the start, which is the operator’s or runner’s call, not this
peer’s.
Implementations§
§impl ForeignToken
impl ForeignToken
pub const fn token(&self) -> &ResumeToken
pub const fn token(&self) -> &ResumeToken
The token that was refused.
pub fn into_token(self) -> ResumeToken
pub fn into_token(self) -> ResumeToken
The token that was refused, handed back.
Trait Implementations§
§impl Classify for ForeignToken
impl Classify for ForeignToken
§fn class(&self) -> FailureClass
fn class(&self) -> FailureClass
The remedy this failure calls for.
§impl Clone for ForeignToken
impl Clone for ForeignToken
§impl Debug for ForeignToken
impl Debug for ForeignToken
§impl Display for ForeignToken
impl Display for ForeignToken
impl Eq for ForeignToken
§impl Error for ForeignToken
impl Error for ForeignToken
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
§impl<R, W, A> From<ForeignToken> for ServeError<R, W, A>
impl<R, W, A> From<ForeignToken> for ServeError<R, W, A>
§fn from(source: ForeignToken) -> Self
fn from(source: ForeignToken) -> Self
Converts to this type from the input type.
§impl PartialEq for ForeignToken
impl PartialEq for ForeignToken
impl StructuralPartialEq for ForeignToken
Auto Trait Implementations§
impl Freeze for ForeignToken
impl RefUnwindSafe for ForeignToken
impl Send for ForeignToken
impl Sync for ForeignToken
impl Unpin for ForeignToken
impl UnsafeUnpin for ForeignToken
impl UnwindSafe for ForeignToken
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more