pub enum EdgeResult<T, E> {
Ok(T),
Err(E),
}Variants§
Implementations§
Source§impl<T, E> EdgeResult<T, E>
impl<T, E> EdgeResult<T, E>
Trait Implementations§
Source§impl<'__de, T, E, __Context> BorrowDecode<'__de, __Context> for EdgeResult<T, E>where
T: BorrowDecode<'__de, __Context>,
E: BorrowDecode<'__de, __Context>,
impl<'__de, T, E, __Context> BorrowDecode<'__de, __Context> for EdgeResult<T, E>where
T: BorrowDecode<'__de, __Context>,
E: BorrowDecode<'__de, __Context>,
Source§fn borrow_decode<__D>(
decoder: &mut __D,
) -> Result<EdgeResult<T, E>, DecodeError>where
__D: BorrowDecoder<'__de, Context = __Context>,
fn borrow_decode<__D>(
decoder: &mut __D,
) -> Result<EdgeResult<T, E>, DecodeError>where
__D: BorrowDecoder<'__de, Context = __Context>,
Attempt to decode this type with the given BorrowDecode.
Source§impl<T, E> Clone for EdgeResult<T, E>
impl<T, E> Clone for EdgeResult<T, E>
Source§fn clone(&self) -> EdgeResult<T, E>
fn clone(&self) -> EdgeResult<T, E>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T, E> Debug for EdgeResult<T, E>
impl<T, E> Debug for EdgeResult<T, E>
Source§impl<T, E, __Context> Decode<__Context> for EdgeResult<T, E>
impl<T, E, __Context> Decode<__Context> for EdgeResult<T, E>
Source§fn decode<__D>(decoder: &mut __D) -> Result<EdgeResult<T, E>, DecodeError>where
__D: Decoder<Context = __Context>,
fn decode<__D>(decoder: &mut __D) -> Result<EdgeResult<T, E>, DecodeError>where
__D: Decoder<Context = __Context>,
Attempt to decode this type with the given Decode.
Source§impl<'de, T, E> Deserialize<'de> for EdgeResult<T, E>where
T: Deserialize<'de>,
E: Deserialize<'de>,
impl<'de, T, E> Deserialize<'de> for EdgeResult<T, E>where
T: Deserialize<'de>,
E: Deserialize<'de>,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EdgeResult<T, E>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EdgeResult<T, E>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T, E> Encode for EdgeResult<T, E>
impl<T, E> Encode for EdgeResult<T, E>
Source§impl<T, E> Serialize for EdgeResult<T, E>
impl<T, E> Serialize for EdgeResult<T, E>
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl<T, E> Freeze for EdgeResult<T, E>
impl<T, E> RefUnwindSafe for EdgeResult<T, E>where
T: RefUnwindSafe,
E: RefUnwindSafe,
impl<T, E> Send for EdgeResult<T, E>
impl<T, E> Sync for EdgeResult<T, E>
impl<T, E> Unpin for EdgeResult<T, E>
impl<T, E> UnsafeUnpin for EdgeResult<T, E>where
T: UnsafeUnpin,
E: UnsafeUnpin,
impl<T, E> UnwindSafe for EdgeResult<T, E>where
T: UnwindSafe,
E: UnwindSafe,
Blanket Implementations§
impl<T> AppData for Twhere
T: OptionalSend + OptionalSync + 'static + OptionalSerde,
impl<T> AppDataResponse for Twhere
T: OptionalSend + OptionalSync + 'static + OptionalSerde,
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