pub struct Offer {
pub socket: u64,
pub name: String,
pub namespace: String,
pub principal: String,
pub key_proven: bool,
pub from: Option<String>,
pub code: Option<String>,
}Expand description
NEST-25: an offer, as an Admission decides it.
Fields§
§socket: u64The socket’s id (as PeerSocket::id).
name: StringThe mount name asked for.
namespace: StringThe namespace offered.
principal: StringThe principal the socket signed in as at the upgrade.
key_proven: boolWhether that principal’s key signed this connection’s nonces at the
offer (possession): its key, proven here and now. Without it the
principal is only what the upgrade’s credential said.
from: Option<String>The address it came from, as the transport saw it.
code: Option<String>The pairing code of this connection, when the node asked for one.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Offer
impl Freeze for Offer
impl Move for Offer
impl RefUnwindSafe for Offer
impl Send for Offer
impl Sync for Offer
impl Unpin for Offer
impl UnsafeUnpin for Offer
impl UnwindSafe for Offer
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