pub struct Constant;Expand description
A home for the project’s magic values, so they are named once and reused.
Implementations§
Source§impl Constant
impl Constant
Sourcepub const CHALLENGE_SIZE: usize = 32
pub const CHALLENGE_SIZE: usize = 32
Size in bytes of a server-issued authentication challenge nonce (DESIGN.md §5).
Sourcepub const CONFIG_DIR_NAME: &'static str = "conclave"
pub const CONFIG_DIR_NAME: &'static str = "conclave"
Name of the per-user configuration / keystore directory under the OS config
dir (i.e. ~/.config/conclave), where identity and permission state live.
Sourcepub const MAX_FRAME_SIZE: usize
pub const MAX_FRAME_SIZE: usize
Upper bound on a single decoded wire frame (16 MiB), rejecting a bogus length prefix before it can drive a large allocation.
Sourcepub const PROTOCOL_VERSION: u32 = 1
pub const PROTOCOL_VERSION: u32 = 1
The wire protocol version negotiated at connect time. Peers advertising an incompatible version are rejected or upgraded (DESIGN.md §13).
Sourcepub const SESSION_PATH_SEPARATOR: char = '/'
pub const SESSION_PATH_SEPARATOR: char = '/'
The separator between the components of a SessionPath (user/machine/session).
Auto Trait Implementations§
impl Freeze for Constant
impl RefUnwindSafe for Constant
impl Send for Constant
impl Sync for Constant
impl Unpin for Constant
impl UnsafeUnpin for Constant
impl UnwindSafe for Constant
Blanket Implementations§
impl<T> AsyncFriendly for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request