pub enum Outcome<R> {
Table(R),
Nak(BvlcResultCode),
Unreachable(String),
Skipped,
}Expand description
What reading one of a BBMD’s tables gave.
Variants§
Table(R)
The table.
Nak(BvlcResultCode)
It answered with this NAK result: it doesn’t carry out the read, as a node that is no BBMD answers.
Unreachable(String)
It did not answer, or the request could not be sent.
Skipped
Not read: the survey reached its limit, or the caller’s budget ran out first.
Implementations§
Source§impl<R> Outcome<R>
impl<R> Outcome<R>
Sourcepub fn from_error(error: &BvlcExchangeError) -> Self
pub fn from_error(error: &BvlcExchangeError) -> Self
Sort a failed table read into a refusal or no answer (#1822): a NAK is a refusal, while anything else (no answer, a reply the read does not take, a send failure, a malformed reply) means the BBMD could not be read.
Trait Implementations§
impl<R: Eq> Eq for Outcome<R>
impl<R: PartialEq> StructuralPartialEq for Outcome<R>
Auto Trait Implementations§
impl<R> Freeze for Outcome<R>where
R: Freeze,
impl<R> RefUnwindSafe for Outcome<R>where
R: RefUnwindSafe,
impl<R> Send for Outcome<R>where
R: Send,
impl<R> Sync for Outcome<R>where
R: Sync,
impl<R> Unpin for Outcome<R>where
R: Unpin,
impl<R> UnsafeUnpin for Outcome<R>where
R: UnsafeUnpin,
impl<R> UnwindSafe for Outcome<R>where
R: UnwindSafe,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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