Struct snarkvm_wasm::os::unix::net::SocketCred
source · pub struct SocketCred(_);
🔬This is a nightly-only experimental API. (
unix_socket_ancillary_data
)Available on Unix only.
Expand description
Unix credential.
Implementations
sourceimpl SocketCred
impl SocketCred
sourcepub fn new() -> SocketCred
🔬This is a nightly-only experimental API. (unix_socket_ancillary_data
)Available on Android or Linux only.
pub fn new() -> SocketCred
unix_socket_ancillary_data
)Create a Unix credential struct.
PID, UID and GID is set to 0.
sourcepub fn set_pid(&mut self, pid: i32)
🔬This is a nightly-only experimental API. (unix_socket_ancillary_data
)Available on Android or Linux only.
pub fn set_pid(&mut self, pid: i32)
unix_socket_ancillary_data
)Set the PID.
sourcepub fn get_pid(&self) -> i32
🔬This is a nightly-only experimental API. (unix_socket_ancillary_data
)Available on Android or Linux only.
pub fn get_pid(&self) -> i32
unix_socket_ancillary_data
)Get the current PID.
sourcepub fn set_uid(&mut self, uid: u32)
🔬This is a nightly-only experimental API. (unix_socket_ancillary_data
)Available on Android or Linux only.
pub fn set_uid(&mut self, uid: u32)
unix_socket_ancillary_data
)Set the UID.
sourcepub fn get_uid(&self) -> u32
🔬This is a nightly-only experimental API. (unix_socket_ancillary_data
)Available on Android or Linux only.
pub fn get_uid(&self) -> u32
unix_socket_ancillary_data
)Get the current UID.
Trait Implementations
sourceimpl Clone for SocketCred
impl Clone for SocketCred
sourcefn clone(&self) -> SocketCred
fn clone(&self) -> SocketCred
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl RefUnwindSafe for SocketCred
impl Send for SocketCred
impl Sync for SocketCred
impl Unpin for SocketCred
impl UnwindSafe for SocketCred
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T>where
T: Future, type Output = <T as Future>::Output;
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T>where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
sourcefn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T>where
T: Future, type Output = <T as Future>::Output;
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T>where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
impl<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
T: Future, type Output = <T as Future>::Output;
sourcefn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;
fn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;