pub struct DeviceJoinOfferBundle {
pub version: u32,
pub offer: DeviceJoinOffer,
pub transport: DeviceJoinTransportParams,
}Expand description
The out-of-band kickoff: the offer plus everything the transport needs to carry the rest of the exchange. The host encodes this however it delivers a join code; coven does not choose that encoding.
Fields§
§version: u32§offer: DeviceJoinOffer§transport: DeviceJoinTransportParamsImplementations§
Source§impl DeviceJoinOfferBundle
impl DeviceJoinOfferBundle
Sourcepub async fn allocate(
storage: &dyn SyncStorage,
offer: DeviceJoinOffer,
) -> Result<DeviceJoinOfferBundle, DeviceJoinTransportError>
pub async fn allocate( storage: &dyn SyncStorage, offer: DeviceJoinOffer, ) -> Result<DeviceJoinOfferBundle, DeviceJoinTransportError>
Mint a bundle for an offer the owner has just made: allocate the attempt’s slots and its seal key.
pub fn to_bytes(&self) -> Vec<u8> ⓘ
pub fn from_bytes( bytes: &[u8], ) -> Result<DeviceJoinOfferBundle, DeviceJoinTransportError>
Trait Implementations§
Source§impl Clone for DeviceJoinOfferBundle
impl Clone for DeviceJoinOfferBundle
Source§fn clone(&self) -> DeviceJoinOfferBundle
fn clone(&self) -> DeviceJoinOfferBundle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DeviceJoinOfferBundle
impl Debug for DeviceJoinOfferBundle
Source§impl<'de> Deserialize<'de> for DeviceJoinOfferBundle
impl<'de> Deserialize<'de> for DeviceJoinOfferBundle
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DeviceJoinOfferBundle, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DeviceJoinOfferBundle, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for DeviceJoinOfferBundle
impl Serialize for DeviceJoinOfferBundle
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 Freeze for DeviceJoinOfferBundle
impl RefUnwindSafe for DeviceJoinOfferBundle
impl Send for DeviceJoinOfferBundle
impl Sync for DeviceJoinOfferBundle
impl Unpin for DeviceJoinOfferBundle
impl UnsafeUnpin for DeviceJoinOfferBundle
impl UnwindSafe for DeviceJoinOfferBundle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.