wasmer_wasix::journal

Struct JournalEffector

Source
pub struct JournalEffector {}
Available on crate feature journal only.
Expand description

The journal effector is an adapter that will be removed in a future refactor. Its purpose is to put the code that does mappings from WASM memory through its abstractions into concrete journal objects that can be stored. Instead of this what should be done is that the syscalls themselves can be represented as a strongly typed object that can be passed directly to the journal but in order to do this we require an extensive refactoring of the WASIX syscalls which is not in scope at this time.

Separating this out now makes it easier to eliminate later without hurting the journal event abstraction through leaking abstraction layers.

Implementations§

Source§

impl JournalEffector

Source

pub fn save_chdir( ctx: &mut FunctionEnvMut<'_, WasiEnv>, path: String, ) -> Result<()>

Source

pub fn apply_chdir( ctx: &mut FunctionEnvMut<'_, WasiEnv>, path: &str, ) -> Result<()>

Source§

impl JournalEffector

Source

pub fn save_clock_time_set( ctx: &mut FunctionEnvMut<'_, WasiEnv>, clock_id: Snapshot0Clockid, time: Timestamp, ) -> Result<()>

Source

pub fn apply_clock_time_set( ctx: &mut FunctionEnvMut<'_, WasiEnv>, clock_id: Snapshot0Clockid, time: Timestamp, ) -> Result<()>

Source§

impl JournalEffector

Source

pub fn save_epoll_create( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, ) -> Result<()>

Source

pub fn apply_epoll_create( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, ) -> Result<()>

Source§

impl JournalEffector

Source

pub fn save_epoll_ctl( ctx: &mut FunctionEnvMut<'_, WasiEnv>, epfd: Fd, op: EpollCtl, fd: Fd, event: Option<EpollEventCtl>, ) -> Result<()>

Source

pub fn apply_epoll_ctl( ctx: &mut FunctionEnvMut<'_, WasiEnv>, pfd: Fd, op: EpollCtl, fd: Fd, event: Option<EpollEventCtl>, ) -> Result<()>

Source§

impl JournalEffector

Source

pub fn save_fd_advise( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, offset: Filesize, len: Filesize, advice: Advice, ) -> Result<()>

Source

pub fn apply_fd_advise( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, offset: Filesize, len: Filesize, advice: Advice, ) -> Result<()>

Source§

impl JournalEffector

Source

pub fn save_fd_allocate( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, offset: Filesize, len: Filesize, ) -> Result<()>

Source

pub fn apply_fd_allocate( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, offset: Filesize, len: Filesize, ) -> Result<()>

Source§

impl JournalEffector

Source

pub fn save_fd_close( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, ) -> Result<()>

Source

pub fn apply_fd_close( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, ) -> Result<()>

Source§

impl JournalEffector

Source

pub fn save_fd_duplicate( ctx: &mut FunctionEnvMut<'_, WasiEnv>, original_fd: Fd, copied_fd: Fd, ) -> Result<()>

Source

pub fn apply_fd_duplicate( ctx: &mut FunctionEnvMut<'_, WasiEnv>, original_fd: Fd, copied_fd: Fd, ) -> Result<()>

Source§

impl JournalEffector

Source

pub fn save_fd_event( ctx: &mut FunctionEnvMut<'_, WasiEnv>, initial_val: u64, flags: EventFdFlags, fd: Fd, ) -> Result<()>

Source

pub fn apply_fd_event( ctx: &mut FunctionEnvMut<'_, WasiEnv>, initial_val: u64, flags: EventFdFlags, fd: Fd, ) -> Result<()>

Source§

impl JournalEffector

Source

pub fn save_fd_pipe( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd1: Fd, fd2: Fd, ) -> Result<()>

Source

pub fn apply_fd_pipe( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd1: Fd, fd2: Fd, ) -> Result<()>

Source§

impl JournalEffector

Source

pub fn save_fd_renumber( ctx: &mut FunctionEnvMut<'_, WasiEnv>, from: Fd, to: Fd, ) -> Result<()>

Source

pub fn apply_fd_renumber( ctx: &mut FunctionEnvMut<'_, WasiEnv>, from: Fd, to: Fd, ) -> Result<()>

Source§

impl JournalEffector

Source

pub fn save_fd_seek( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, offset: i64, whence: Whence, ) -> Result<()>

Source

pub fn apply_fd_seek( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, offset: i64, whence: Whence, ) -> Result<()>

Source§

impl JournalEffector

Source

pub fn save_fd_set_flags( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, flags: Fdflags, ) -> Result<()>

Source

pub fn apply_fd_set_flags( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, flags: Fdflags, ) -> Result<()>

Source§

impl JournalEffector

Source

pub fn save_fd_set_rights( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, fs_rights_base: Rights, fs_rights_inheriting: Rights, ) -> Result<()>

Source

pub fn apply_fd_set_rights( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, fs_rights_base: Rights, fs_rights_inheriting: Rights, ) -> Result<()>

Source§

impl JournalEffector

Source

pub fn save_fd_set_size( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, st_size: Filesize, ) -> Result<()>

Source

pub fn apply_fd_set_size( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, st_size: Filesize, ) -> Result<()>

Source§

impl JournalEffector

Source

pub fn save_fd_set_times( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, st_atim: Timestamp, st_mtim: Timestamp, fst_flags: Fstflags, ) -> Result<()>

Source

pub fn apply_fd_set_times( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, st_atim: Timestamp, st_mtim: Timestamp, fst_flags: Fstflags, ) -> Result<()>

Source§

impl JournalEffector

Source

pub fn save_fd_write<M: MemorySize>( ctx: &FunctionEnvMut<'_, WasiEnv>, fd: Fd, offset: u64, written: usize, iovs: WasmPtr<__wasi_ciovec_t<M>, M>, iovs_len: M::Offset, ) -> Result<()>

Source

pub fn apply_fd_write<M: MemorySize>( ctx: &FunctionEnvMut<'_, WasiEnv>, fd: Fd, offset: u64, data: Cow<'_, [u8]>, ) -> Result<()>

Source§

impl JournalEffector

Source

pub fn save_path_create_directory( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, path: String, ) -> Result<()>

Source

pub fn apply_path_create_directory( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, path: &str, ) -> Result<()>

Source§

impl JournalEffector

Source§

impl JournalEffector

Source

pub fn save_path_open( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, dirfd: Fd, dirflags: LookupFlags, path: String, o_flags: Oflags, fs_rights_base: Rights, fs_rights_inheriting: Rights, fs_flags: Fdflags, ) -> Result<()>

Source

pub fn apply_path_open( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, dirfd: Fd, dirflags: LookupFlags, path: &str, o_flags: Oflags, fs_rights_base: Rights, fs_rights_inheriting: Rights, fs_flags: Fdflags, ) -> Result<()>

Source§

impl JournalEffector

Source

pub fn save_path_remove_directory( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, path: String, ) -> Result<()>

Source

pub fn apply_path_remove_directory( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, path: &str, ) -> Result<()>

Source§

impl JournalEffector

Source

pub fn save_path_rename( ctx: &mut FunctionEnvMut<'_, WasiEnv>, old_fd: Fd, old_path: String, new_fd: Fd, new_path: String, ) -> Result<()>

Source

pub fn apply_path_rename( ctx: &mut FunctionEnvMut<'_, WasiEnv>, old_fd: Fd, old_path: &str, new_fd: Fd, new_path: &str, ) -> Result<()>

Source§

impl JournalEffector

Source

pub fn save_path_set_times( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, flags: LookupFlags, path: String, st_atim: Timestamp, st_mtim: Timestamp, fst_flags: Fstflags, ) -> Result<()>

Source

pub fn apply_path_set_times( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, flags: LookupFlags, path: &str, st_atim: Timestamp, st_mtim: Timestamp, fst_flags: Fstflags, ) -> Result<()>

Source§

impl JournalEffector

Source§

impl JournalEffector

Source§

impl JournalEffector

Source

pub fn save_port_addr_add( ctx: &mut FunctionEnvMut<'_, WasiEnv>, cidr: IpCidr, ) -> Result<()>

Source

pub fn apply_port_addr_add( ctx: &mut FunctionEnvMut<'_, WasiEnv>, cidr: IpCidr, ) -> Result<()>

Source§

impl JournalEffector

Source§

impl JournalEffector

Source

pub fn save_port_addr_remove( ctx: &mut FunctionEnvMut<'_, WasiEnv>, addr: IpAddr, ) -> Result<()>

Source

pub fn apply_port_addr_remove( ctx: &mut FunctionEnvMut<'_, WasiEnv>, addr: IpAddr, ) -> Result<()>

Source§

impl JournalEffector

Source

pub fn save_port_bridge( ctx: &mut FunctionEnvMut<'_, WasiEnv>, network: String, token: String, security: StreamSecurity, ) -> Result<()>

Source

pub fn apply_port_bridge( ctx: &mut FunctionEnvMut<'_, WasiEnv>, network: &str, token: &str, security: StreamSecurity, ) -> Result<()>

Source§

impl JournalEffector

Source§

impl JournalEffector

Source§

impl JournalEffector

Source

pub fn save_port_route_add( ctx: &mut FunctionEnvMut<'_, WasiEnv>, cidr: IpCidr, via_router: IpAddr, preferred_until: Option<Duration>, expires_at: Option<Duration>, ) -> Result<()>

Source

pub fn apply_port_route_add( ctx: &mut FunctionEnvMut<'_, WasiEnv>, cidr: IpCidr, via_router: IpAddr, preferred_until: Option<Duration>, expires_at: Option<Duration>, ) -> Result<()>

Source§

impl JournalEffector

Source§

impl JournalEffector

Source§

impl JournalEffector

Source§

impl JournalEffector

Source

pub fn save_sock_accepted( ctx: &mut FunctionEnvMut<'_, WasiEnv>, listen_fd: Fd, fd: Fd, addr: SocketAddr, peer_addr: SocketAddr, fd_flags: Fdflags, nonblocking: bool, ) -> Result<()>

Source

pub fn apply_sock_accepted( ctx: &mut FunctionEnvMut<'_, WasiEnv>, _listen_fd: Fd, fd: Fd, addr: SocketAddr, peer_addr: SocketAddr, fd_flags: Fdflags, nonblocking: bool, ) -> Result<()>

Source§

impl JournalEffector

Source

pub fn save_sock_bind( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, addr: SocketAddr, ) -> Result<()>

Source

pub fn apply_sock_bind( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, addr: SocketAddr, ) -> Result<()>

Source§

impl JournalEffector

Source

pub fn save_sock_connect( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, local_addr: SocketAddr, peer_addr: SocketAddr, ) -> Result<()>

Source

pub fn apply_sock_connect( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, local_addr: SocketAddr, peer_addr: SocketAddr, dead: bool, ) -> Result<()>

Source§

impl JournalEffector

Source

pub fn save_sock_join_ipv4_multicast( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, multiaddr: Ipv4Addr, iface: Ipv4Addr, ) -> Result<()>

Source

pub fn apply_sock_join_ipv4_multicast( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, multiaddr: Ipv4Addr, iface: Ipv4Addr, ) -> Result<()>

Source§

impl JournalEffector

Source

pub fn save_sock_join_ipv6_multicast( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, multiaddr: Ipv6Addr, iface: u32, ) -> Result<()>

Source

pub fn apply_sock_join_ipv6_multicast( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, multiaddr: Ipv6Addr, iface: u32, ) -> Result<()>

Source§

impl JournalEffector

Source

pub fn save_sock_leave_ipv4_multicast( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, multiaddr: Ipv4Addr, iface: Ipv4Addr, ) -> Result<()>

Source

pub fn apply_sock_leave_ipv4_multicast( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, multiaddr: Ipv4Addr, iface: Ipv4Addr, ) -> Result<()>

Source§

impl JournalEffector

Source

pub fn save_sock_leave_ipv6_multicast( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, multiaddr: Ipv6Addr, iface: u32, ) -> Result<()>

Source

pub fn apply_sock_leave_ipv6_multicast( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, multiaddr: Ipv6Addr, iface: u32, ) -> Result<()>

Source§

impl JournalEffector

Source

pub fn save_sock_listen( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, backlog: usize, ) -> Result<()>

Source

pub fn apply_sock_listen( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, backlog: usize, ) -> Result<()>

Source§

impl JournalEffector

Source

pub fn save_sock_open( ctx: &mut FunctionEnvMut<'_, WasiEnv>, af: Addressfamily, ty: Socktype, pt: SockProto, fd: Fd, ) -> Result<()>

Source

pub fn apply_sock_open( ctx: &mut FunctionEnvMut<'_, WasiEnv>, af: Addressfamily, ty: Socktype, pt: SockProto, fd: Fd, ) -> Result<()>

Source§

impl JournalEffector

Source

pub fn save_sock_send<M: MemorySize>( ctx: &FunctionEnvMut<'_, WasiEnv>, fd: Fd, sent: usize, iovs: WasmPtr<__wasi_ciovec_t<M>, M>, iovs_len: M::Offset, si_flags: SiFlags, ) -> Result<()>

Source

pub fn apply_sock_send<M: MemorySize>( ctx: &FunctionEnvMut<'_, WasiEnv>, sock: Fd, si_data: Cow<'_, [u8]>, si_flags: SiFlags, ) -> Result<()>

Source§

impl JournalEffector

Source

pub fn save_sock_send_file<M: MemorySize>( ctx: &mut FunctionEnvMut<'_, WasiEnv>, socket_fd: Fd, file_fd: Fd, offset: Filesize, count: Filesize, ) -> Result<()>

Source

pub fn apply_sock_send_file( ctx: &mut FunctionEnvMut<'_, WasiEnv>, socket_fd: Fd, file_fd: Fd, offset: Filesize, count: Filesize, ) -> Result<()>

Source§

impl JournalEffector

Source

pub fn save_sock_send_to<M: MemorySize>( ctx: &FunctionEnvMut<'_, WasiEnv>, fd: Fd, sent: usize, iovs: WasmPtr<__wasi_ciovec_t<M>, M>, iovs_len: M::Offset, addr: SocketAddr, si_flags: SiFlags, ) -> Result<()>

Source

pub fn apply_sock_send_to<M: MemorySize>( ctx: &FunctionEnvMut<'_, WasiEnv>, sock: Fd, si_data: Cow<'_, [u8]>, si_flags: SiFlags, addr: SocketAddr, ) -> Result<()>

Source§

impl JournalEffector

Source

pub fn save_sock_set_opt_flag( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, opt: Sockoption, flag: bool, ) -> Result<()>

Source

pub fn apply_sock_set_opt_flag( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, opt: Sockoption, flag: bool, ) -> Result<()>

Source§

impl JournalEffector

Source

pub fn save_sock_set_opt_size( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, opt: Sockoption, size: Filesize, ) -> Result<()>

Source

pub fn apply_sock_set_opt_size( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, opt: Sockoption, size: Filesize, ) -> Result<()>

Source§

impl JournalEffector

Source

pub fn save_sock_set_opt_time( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, ty: TimeType, time: Option<Duration>, ) -> Result<()>

Source

pub fn apply_sock_set_opt_time( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, ty: TimeType, time: Option<Duration>, ) -> Result<()>

Source§

impl JournalEffector

Source

pub fn save_sock_shutdown( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, shutdown: Shutdown, ) -> Result<()>

Source

pub fn apply_sock_shutdown( ctx: &mut FunctionEnvMut<'_, WasiEnv>, fd: Fd, shutdown: Shutdown, ) -> Result<()>

Source§

impl JournalEffector

Source

pub fn save_tty_set( ctx: &mut FunctionEnvMut<'_, WasiEnv>, state: WasiTtyState, ) -> Result<()>

Source

pub fn apply_tty_set( ctx: &mut FunctionEnvMut<'_, WasiEnv>, state: WasiTtyState, ) -> Result<()>

Source§

impl JournalEffector

Source

pub fn save_memory_and_snapshot( ctx: &mut FunctionEnvMut<'_, WasiEnv>, guard: &mut MutexGuard<'_, WasiProcessInner>, trigger: SnapshotTrigger, ) -> Result<()>

Source

pub unsafe fn apply_compressed_memory( ctx: &mut FunctionEnvMut<'_, WasiEnv>, region: Range<u64>, compressed_data: &[u8], ) -> Result<()>

§Safety

This function manipulates the memory of the process and thus must be executed by the WASM process thread itself.

Source§

impl JournalEffector

Source

pub fn save_process_exit( env: &WasiEnv, exit_code: Option<ExitCode>, ) -> Result<()>

Source

pub unsafe fn apply_process_exit( ctx: &mut FunctionEnvMut<'_, WasiEnv>, exit_code: Option<ExitCode>, ) -> Result<()>

§Safety

This function manipulates the memory of the process and thus must be executed by the WASM process thread itself.

Source§

impl JournalEffector

Source

pub fn save_thread_exit( env: &WasiEnv, id: WasiThreadId, exit_code: Option<ExitCode>, ) -> Result<()>

Source

pub fn apply_thread_exit( ctx: &mut FunctionEnvMut<'_, WasiEnv>, tid: WasiThreadId, exit_code: Option<ExitCode>, ) -> Result<()>

Source§

impl JournalEffector

Source

pub fn save_thread_state<M: MemorySize>( ctx: &mut FunctionEnvMut<'_, WasiEnv>, id: WasiThreadId, memory_stack: Bytes, rewind_stack: Bytes, store_data: Bytes, start: ThreadStartType, layout: WasiMemoryLayout, ) -> Result<()>

Source

pub fn apply_thread_state<M: MemorySize>( ctx: &mut FunctionEnvMut<'_, WasiEnv>, tid: WasiThreadId, memory_stack: Bytes, rewind_stack: Bytes, store_data: Bytes, start: ThreadStartType, layout: WasiMemoryLayout, ) -> Result<()>

This will take the supplied stacks and apply them to the memory region dedicated to this thread. After that it will spawn a WASM thread and

Trait Implementations§

Source§

impl Clone for JournalEffector

Source§

fn clone(&self) -> JournalEffector

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for JournalEffector

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> ArchivePointee for T

Source§

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.
Source§

fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata

Converts some archived metadata to the pointer metadata for itself.
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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 more
Source§

impl<T> LayoutRaw for T

Source§

fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>

Returns the layout of the type.
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize = _

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Pointee for T

Source§

type Metadata = ()

The metadata type for pointers and references to this type.
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Upcastable for T
where T: Any + Debug + 'static,

Source§

fn upcast_any_ref(&self) -> &(dyn Any + 'static)

Source§

fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)

Source§

fn upcast_any_box(self: Box<T>) -> Box<dyn Any>

Source§

impl<T> Upcastable for T
where T: Any + Send + Sync + 'static,

Source§

fn upcast_any_ref(&self) -> &(dyn Any + 'static)

upcast ref
Source§

fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)

upcast mut ref
Source§

fn upcast_any_box(self: Box<T>) -> Box<dyn Any>

upcast boxed dyn
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<A, B, T> HttpServerConnExec<A, B> for T
where B: Body,

Source§

impl<T> MaybeSendSync for T