pub struct FileLoginStore {
pub path: PathBuf,
}Expand description
Stores logins in a JSON file (0600, in a 0700 directory). The Go, Python, TypeScript and Rust
libraries share default_login_file, so one login serves all four.
Fields§
§path: PathBufEmpty means default_login_file.
Trait Implementations§
Source§impl Clone for FileLoginStore
impl Clone for FileLoginStore
Source§fn clone(&self) -> FileLoginStore
fn clone(&self) -> FileLoginStore
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 FileLoginStore
impl Debug for FileLoginStore
Source§impl Default for FileLoginStore
impl Default for FileLoginStore
Source§fn default() -> FileLoginStore
fn default() -> FileLoginStore
Returns the “default value” for a type. Read more
Source§impl LoginStore for FileLoginStore
impl LoginStore for FileLoginStore
Source§fn lock(&self) -> BoxFuture<'_, Result<LoginLock>>
fn lock(&self) -> BoxFuture<'_, Result<LoginLock>>
Takes <file>.lock, created exclusively; a lock older than two minutes is taken to be left
over from a crashed process. The same scheme as the Go, Python and TypeScript libraries.
Auto Trait Implementations§
impl Freeze for FileLoginStore
impl RefUnwindSafe for FileLoginStore
impl Send for FileLoginStore
impl Sync for FileLoginStore
impl Unpin for FileLoginStore
impl UnsafeUnpin for FileLoginStore
impl UnwindSafe for FileLoginStore
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>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].