pub struct SecurityAttributes { /* private fields */ }
Expand description
Endpoint for IPC transport
§Examples
ⓘ
use parity_tokio_ipc::{Endpoint, dummy_endpoint};
use futures::{future, Future, Stream, StreamExt};
use tokio::runtime::Runtime;
fn main() {
let mut runtime = Runtime::new().unwrap();
let mut endpoint = Endpoint::new(dummy_endpoint());
let server = endpoint.incoming()
.expect("failed to open up a new pipe/socket")
.for_each(|_stream| {
println!("Connection received");
futures::future::ready(())
});
runtime.block_on(server)
}
Security attributes.
Implementations§
Source§impl SecurityAttributes
impl SecurityAttributes
Sourcepub fn empty() -> SecurityAttributes
pub fn empty() -> SecurityAttributes
New default security attributes.
Sourcepub fn allow_everyone_connect(&self) -> Result<SecurityAttributes>
pub fn allow_everyone_connect(&self) -> Result<SecurityAttributes>
New default security attributes that allow everyone to connect.
Sourcepub fn allow_everyone_create() -> Result<SecurityAttributes>
pub fn allow_everyone_create() -> Result<SecurityAttributes>
New default security attributes that allow everyone to create.
Trait Implementations§
impl Send for SecurityAttributes
Auto Trait Implementations§
impl Freeze for SecurityAttributes
impl RefUnwindSafe for SecurityAttributes
impl !Sync for SecurityAttributes
impl Unpin for SecurityAttributes
impl UnwindSafe for SecurityAttributes
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