Enum wasmer_journal::JournalEntry

source ·
pub enum JournalEntry<'a> {
Show 59 variants InitModuleV1 { wasm_hash: Box<[u8]>, }, ClearEtherealV1, UpdateMemoryRegionV1 { region: Range<u64>, compressed_data: Cow<'a, [u8]>, }, ProcessExitV1 { exit_code: Option<ExitCode>, }, SetThreadV1 { id: u32, call_stack: Cow<'a, [u8]>, memory_stack: Cow<'a, [u8]>, store_data: Cow<'a, [u8]>, start: ThreadStartType, layout: WasiMemoryLayout, is_64bit: bool, }, CloseThreadV1 { id: u32, exit_code: Option<ExitCode>, }, FileDescriptorSeekV1 { fd: u32, offset: FileDelta, whence: Whence, }, FileDescriptorWriteV1 { fd: u32, offset: u64, data: Cow<'a, [u8]>, is_64bit: bool, }, SetClockTimeV1 { clock_id: Snapshot0Clockid, time: Timestamp, }, CloseFileDescriptorV1 { fd: u32, }, OpenFileDescriptorV1 { fd: u32, dirfd: u32, dirflags: LookupFlags, path: Cow<'a, str>, o_flags: Oflags, fs_rights_base: Rights, fs_rights_inheriting: Rights, fs_flags: Fdflags, }, RenumberFileDescriptorV1 { old_fd: u32, new_fd: u32, }, DuplicateFileDescriptorV1 { original_fd: u32, copied_fd: u32, }, CreateDirectoryV1 { fd: u32, path: Cow<'a, str>, }, RemoveDirectoryV1 { fd: u32, path: Cow<'a, str>, }, PathSetTimesV1 { fd: u32, flags: LookupFlags, path: Cow<'a, str>, st_atim: Timestamp, st_mtim: Timestamp, fst_flags: Fstflags, }, FileDescriptorSetTimesV1 { fd: u32, st_atim: Timestamp, st_mtim: Timestamp, fst_flags: Fstflags, }, FileDescriptorSetFlagsV1 { fd: u32, flags: Fdflags, }, FileDescriptorSetRightsV1 { fd: u32, fs_rights_base: Rights, fs_rights_inheriting: Rights, }, FileDescriptorSetSizeV1 { fd: u32, st_size: Filesize, }, FileDescriptorAdviseV1 { fd: u32, offset: Filesize, len: Filesize, advice: Advice, }, FileDescriptorAllocateV1 { fd: u32, offset: Filesize, len: Filesize, }, CreateHardLinkV1 { old_fd: u32, old_path: Cow<'a, str>, old_flags: LookupFlags, new_fd: u32, new_path: Cow<'a, str>, }, CreateSymbolicLinkV1 { old_path: Cow<'a, str>, fd: u32, new_path: Cow<'a, str>, }, UnlinkFileV1 { fd: u32, path: Cow<'a, str>, }, PathRenameV1 { old_fd: u32, old_path: Cow<'a, str>, new_fd: u32, new_path: Cow<'a, str>, }, ChangeDirectoryV1 { path: Cow<'a, str>, }, EpollCreateV1 { fd: u32, }, EpollCtlV1 { epfd: u32, op: EpollCtl, fd: u32, event: Option<EpollEventCtl>, }, TtySetV1 { tty: Tty, line_feeds: bool, }, CreatePipeV1 { fd1: u32, fd2: u32, }, CreateEventV1 { initial_val: u64, flags: EventFdFlags, fd: u32, }, PortAddAddrV1 { cidr: IpCidr, }, PortDelAddrV1 { addr: IpAddr, }, PortAddrClearV1, PortBridgeV1 { network: Cow<'a, str>, token: Cow<'a, str>, security: StreamSecurity, }, PortUnbridgeV1, PortDhcpAcquireV1, PortGatewaySetV1 { ip: IpAddr, }, PortRouteAddV1 { cidr: IpCidr, via_router: IpAddr, preferred_until: Option<Duration>, expires_at: Option<Duration>, }, PortRouteClearV1, PortRouteDelV1 { ip: IpAddr, }, SocketOpenV1 { af: Addressfamily, ty: Socktype, pt: SockProto, fd: u32, }, SocketListenV1 { fd: u32, backlog: u32, }, SocketBindV1 { fd: u32, addr: SocketAddr, }, SocketConnectedV1 { fd: u32, local_addr: SocketAddr, peer_addr: SocketAddr, }, SocketAcceptedV1 { listen_fd: u32, fd: u32, local_addr: SocketAddr, peer_addr: SocketAddr, fd_flags: Fdflags, non_blocking: bool, }, SocketJoinIpv4MulticastV1 { fd: u32, multiaddr: Ipv4Addr, iface: Ipv4Addr, }, SocketJoinIpv6MulticastV1 { fd: u32, multi_addr: Ipv6Addr, iface: u32, }, SocketLeaveIpv4MulticastV1 { fd: u32, multi_addr: Ipv4Addr, iface: Ipv4Addr, }, SocketLeaveIpv6MulticastV1 { fd: u32, multi_addr: Ipv6Addr, iface: u32, }, SocketSendFileV1 { socket_fd: u32, file_fd: u32, offset: Filesize, count: Filesize, }, SocketSendToV1 { fd: u32, data: Cow<'a, [u8]>, flags: SiFlags, addr: SocketAddr, is_64bit: bool, }, SocketSendV1 { fd: u32, data: Cow<'a, [u8]>, flags: SiFlags, is_64bit: bool, }, SocketSetOptFlagV1 { fd: u32, opt: Sockoption, flag: bool, }, SocketSetOptSizeV1 { fd: u32, opt: Sockoption, size: u64, }, SocketSetOptTimeV1 { fd: u32, ty: SocketOptTimeType, time: Option<Duration>, }, SocketShutdownV1 { fd: u32, how: SocketShutdownHow, }, SnapshotV1 { when: SystemTime, trigger: SnapshotTrigger, },
}
Expand description

Represents a log entry in a snapshot log stream that represents the total state of a WASM process at a point in time.

Variants§

§

InitModuleV1

Fields

§wasm_hash: Box<[u8]>
§

ClearEtherealV1

§

UpdateMemoryRegionV1

Fields

§region: Range<u64>
§compressed_data: Cow<'a, [u8]>
§

ProcessExitV1

Fields

§exit_code: Option<ExitCode>
§

SetThreadV1

Fields

§id: u32
§call_stack: Cow<'a, [u8]>
§memory_stack: Cow<'a, [u8]>
§store_data: Cow<'a, [u8]>
§is_64bit: bool
§

CloseThreadV1

Fields

§id: u32
§exit_code: Option<ExitCode>
§

FileDescriptorSeekV1

Fields

§fd: u32
§offset: FileDelta
§whence: Whence
§

FileDescriptorWriteV1

Fields

§fd: u32
§offset: u64
§data: Cow<'a, [u8]>
§is_64bit: bool
§

SetClockTimeV1

Fields

§

CloseFileDescriptorV1

Fields

§fd: u32
§

OpenFileDescriptorV1

Fields

§fd: u32
§dirfd: u32
§dirflags: LookupFlags
§path: Cow<'a, str>
§o_flags: Oflags
§fs_rights_base: Rights
§fs_rights_inheriting: Rights
§fs_flags: Fdflags
§

RenumberFileDescriptorV1

Fields

§old_fd: u32
§new_fd: u32
§

DuplicateFileDescriptorV1

Fields

§original_fd: u32
§copied_fd: u32
§

CreateDirectoryV1

Fields

§fd: u32
§path: Cow<'a, str>
§

RemoveDirectoryV1

Fields

§fd: u32
§path: Cow<'a, str>
§

PathSetTimesV1

Fields

§fd: u32
§path: Cow<'a, str>
§st_atim: Timestamp
§st_mtim: Timestamp
§fst_flags: Fstflags
§

FileDescriptorSetTimesV1

Fields

§fd: u32
§st_atim: Timestamp
§st_mtim: Timestamp
§fst_flags: Fstflags
§

FileDescriptorSetFlagsV1

Fields

§fd: u32
§flags: Fdflags
§

FileDescriptorSetRightsV1

Fields

§fd: u32
§fs_rights_base: Rights
§fs_rights_inheriting: Rights
§

FileDescriptorSetSizeV1

Fields

§fd: u32
§st_size: Filesize
§

FileDescriptorAdviseV1

Fields

§fd: u32
§offset: Filesize
§advice: Advice
§

FileDescriptorAllocateV1

Fields

§fd: u32
§offset: Filesize
§

CreateHardLinkV1

Fields

§old_fd: u32
§old_path: Cow<'a, str>
§old_flags: LookupFlags
§new_fd: u32
§new_path: Cow<'a, str>
§

CreateSymbolicLinkV1

Fields

§old_path: Cow<'a, str>
§fd: u32
§new_path: Cow<'a, str>
§

UnlinkFileV1

Fields

§fd: u32
§path: Cow<'a, str>
§

PathRenameV1

Fields

§old_fd: u32
§old_path: Cow<'a, str>
§new_fd: u32
§new_path: Cow<'a, str>
§

ChangeDirectoryV1

Fields

§path: Cow<'a, str>
§

EpollCreateV1

Fields

§fd: u32
§

EpollCtlV1

Fields

§epfd: u32
§fd: u32
§

TtySetV1

Fields

§tty: Tty
§line_feeds: bool
§

CreatePipeV1

Fields

§fd1: u32
§fd2: u32
§

CreateEventV1

Fields

§initial_val: u64
§fd: u32
§

PortAddAddrV1

Fields

§cidr: IpCidr
§

PortDelAddrV1

Fields

§addr: IpAddr
§

PortAddrClearV1

§

PortBridgeV1

Fields

§network: Cow<'a, str>
§token: Cow<'a, str>
§

PortUnbridgeV1

§

PortDhcpAcquireV1

§

PortGatewaySetV1

Fields

§

PortRouteAddV1

Fields

§cidr: IpCidr
§via_router: IpAddr
§preferred_until: Option<Duration>
§expires_at: Option<Duration>
§

PortRouteClearV1

§

PortRouteDelV1

Fields

§

SocketOpenV1

§

SocketListenV1

Fields

§fd: u32
§backlog: u32
§

SocketBindV1

Fields

§fd: u32
§

SocketConnectedV1

Fields

§fd: u32
§local_addr: SocketAddr
§peer_addr: SocketAddr
§

SocketAcceptedV1

Fields

§listen_fd: u32
§fd: u32
§local_addr: SocketAddr
§peer_addr: SocketAddr
§fd_flags: Fdflags
§non_blocking: bool
§

SocketJoinIpv4MulticastV1

Fields

§fd: u32
§multiaddr: Ipv4Addr
§iface: Ipv4Addr
§

SocketJoinIpv6MulticastV1

Fields

§fd: u32
§multi_addr: Ipv6Addr
§iface: u32
§

SocketLeaveIpv4MulticastV1

Fields

§fd: u32
§multi_addr: Ipv4Addr
§iface: Ipv4Addr
§

SocketLeaveIpv6MulticastV1

Fields

§fd: u32
§multi_addr: Ipv6Addr
§iface: u32
§

SocketSendFileV1

Fields

§socket_fd: u32
§file_fd: u32
§offset: Filesize
§count: Filesize
§

SocketSendToV1

Fields

§fd: u32
§data: Cow<'a, [u8]>
§flags: SiFlags
§is_64bit: bool
§

SocketSendV1

Fields

§fd: u32
§data: Cow<'a, [u8]>
§flags: SiFlags
§is_64bit: bool
§

SocketSetOptFlagV1

Fields

§fd: u32
§flag: bool
§

SocketSetOptSizeV1

Fields

§fd: u32
§size: u64
§

SocketSetOptTimeV1

§

SocketShutdownV1

§

SnapshotV1

Represents the marker for the end of a snapshot

Fields

Implementations§

source§

impl<'a> JournalEntry<'a>

source§

impl<'a> JournalEntry<'a>

source

pub fn into_owned(self) -> JournalEntry<'static>

source

pub fn estimate_size(&self) -> usize

Trait Implementations§

source§

impl<'a> Clone for JournalEntry<'a>

source§

fn clone(&self) -> JournalEntry<'a>

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<'a> Debug for JournalEntry<'a>

source§

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

Formats the value using the given formatter. Read more
source§

impl<'de, 'a> Deserialize<'de> for JournalEntry<'a>

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<'a> Display for JournalEntry<'a>

source§

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

Formats the value using the given formatter. Read more
source§

impl<'a> PartialEq for JournalEntry<'a>

source§

fn eq(&self, other: &JournalEntry<'a>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<'a> Serialize for JournalEntry<'a>

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<'a> TryFrom<ArchivedJournalEntry<'a>> for JournalEntry<'a>

§

type Error = Error

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

fn try_from(value: ArchivedJournalEntry<'a>) -> Result<Self>

Performs the conversion.
source§

impl<'a> StructuralPartialEq for JournalEntry<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for JournalEntry<'a>

§

impl<'a> RefUnwindSafe for JournalEntry<'a>

§

impl<'a> Send for JournalEntry<'a>

§

impl<'a> Sync for JournalEntry<'a>

§

impl<'a> Unpin for JournalEntry<'a>

§

impl<'a> UnwindSafe for JournalEntry<'a>

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

§

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§

default 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<F, W, T, D> Deserialize<With<T, W>, D> for F
where W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,

source§

fn deserialize( &self, deserializer: &mut D, ) -> Result<With<T, W>, <D as Fallible>::Error>

Deserializes using the given deserializer
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> LayoutRaw for T

source§

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

Gets the layout of the type.
source§

impl<T> Pointee for T

§

type Metadata = ()

The type for metadata in pointers and references to Self.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

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

§

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> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

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

§

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>,

§

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 + 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<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> 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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,