pub struct ResourceTicket {
pub hash: [u8; 32],
pub size: u64,
pub grant: [u8; 32],
}Expand description
Transmitted only inside an authenticated, recipient-scoped application message. The hash identifies bytes; neither a hash nor this token alone is authority. Serving also requires the bound endpoint and current membership.
Fields§
§hash: [u8; 32]§size: u64§grant: [u8; 32]Trait Implementations§
Source§impl Clone for ResourceTicket
impl Clone for ResourceTicket
Source§impl Debug for ResourceTicket
impl Debug for ResourceTicket
Source§impl<'de> Deserialize<'de> for ResourceTicket
impl<'de> Deserialize<'de> for ResourceTicket
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for ResourceTicket
impl Freeze for ResourceTicket
impl Move for ResourceTicket
impl RefUnwindSafe for ResourceTicket
impl Send for ResourceTicket
impl Sync for ResourceTicket
impl Unpin for ResourceTicket
impl UnsafeUnpin for ResourceTicket
impl UnwindSafe for ResourceTicket
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