From d878d18878740f1b0a5a76427ed54c04117747e7 Mon Sep 17 00:00:00 2001 From: github-actions Date: Sat, 7 Oct 2023 00:39:16 +0000 Subject: [PATCH] Generated docs for shadow/shadow@96d171d --- .../implementors/core/fmt/trait.Display.js | 2 +- docs/rust/quote/trait.IdentFragment.html | 4 ++-- docs/rust/quote/trait.ToTokens.html | 2 +- .../handler/struct.SyscallHandler.html | 24 +++++++++---------- .../utility/byte_queue/enum.BytesWrapper.html | 4 ++-- .../utility/byte_queue/enum.ChunkType.html | 6 ++--- .../shadow_rs/utility/byte_queue/index.html | 2 +- .../utility/byte_queue/struct.ByteQueue.html | 8 +++---- .../constant.SIMTIME_INVALID.html | 2 +- .../simulation_time/constant.SIMTIME_MAX.html | 2 +- .../simulation_time/constant.SIMTIME_MIN.html | 2 +- .../constant.SIMTIME_ONE_HOUR.html | 2 +- .../constant.SIMTIME_ONE_MICROSECOND.html | 2 +- .../constant.SIMTIME_ONE_MILLISECOND.html | 2 +- .../constant.SIMTIME_ONE_MINUTE.html | 2 +- .../constant.SIMTIME_ONE_NANOSECOND.html | 2 +- .../constant.SIMTIME_ONE_SECOND.html | 2 +- .../export/fn.simtime_from_timespec.html | 2 +- .../export/fn.simtime_from_timeval.html | 2 +- .../export/fn.simtime_to_timespec.html | 2 +- .../export/fn.simtime_to_timeval.html | 2 +- .../simulation_time/export/index.html | 2 +- .../simulation_time/index.html | 2 +- .../struct.SimulationTime.html | 13 +++++----- .../simulation_time/type.CSimulationTime.html | 2 +- .../host/syscall/handler/socket.rs.html | 2 -- .../src/shadow_rs/utility/byte_queue.rs.html | 2 -- .../simulation_time.rs.html | 6 ++--- 28 files changed, 50 insertions(+), 57 deletions(-) diff --git a/docs/rust/implementors/core/fmt/trait.Display.js b/docs/rust/implementors/core/fmt/trait.Display.js index 02f691da25d..3d6585cbf94 100644 --- a/docs/rust/implementors/core/fmt/trait.Display.js +++ b/docs/rust/implementors/core/fmt/trait.Display.js @@ -21,7 +21,7 @@ "gimli":[["impl Display for DwLnct"],["impl Display for DwEnd"],["impl Display for Error"],["impl Display for DwAccess"],["impl Display for DwMacro"],["impl Display for DwVis"],["impl Display for DwDsc"],["impl Display for DwChildren"],["impl Display for DwSectV2"],["impl Display for DwTag"],["impl Display for DwAte"],["impl Display for DwIdx"],["impl Display for DwDefaulted"],["impl Display for DwEhPe"],["impl Display for DwCc"],["impl Display for DwLne"],["impl Display for DwAddr"],["impl Display for DwId"],["impl Display for DwForm"],["impl Display for DwUt"],["impl Display for DwOrd"],["impl<R, Offset> Display for LineInstruction<R, Offset>where\n R: Reader<Offset = Offset>,\n Offset: ReaderOffset,"],["impl Display for DwRle"],["impl Display for DwSect"],["impl Display for DwLang"],["impl Display for DwLns"],["impl Display for DwOp"],["impl Display for DwAt"],["impl Display for DwCfa"],["impl Display for DwVirtuality"],["impl Display for DwDs"],["impl Display for DwInl"],["impl Display for DwLle"]], "glob":[["impl Display for Pattern"],["impl Display for PatternError"],["impl Display for GlobError"]], "hashbrown":[["impl<'a, K: Debug, V: Debug, S, A: Allocator + Clone> Display for OccupiedError<'a, K, V, S, A>"]], -"heck":[["impl<T: AsRef<str>> Display for AsShoutyKebabCase<T>"],["impl<T: AsRef<str>> Display for AsTitleCase<T>"],["impl<T: AsRef<str>> Display for AsTrainCase<T>"],["impl<T: AsRef<str>> Display for AsLowerCamelCase<T>"],["impl<T: AsRef<str>> Display for AsSnakeCase<T>"],["impl<T: AsRef<str>> Display for AsShoutySnakeCase<T>"],["impl<T: AsRef<str>> Display for AsKebabCase<T>"],["impl<T: AsRef<str>> Display for AsUpperCamelCase<T>"]], +"heck":[["impl<T: AsRef<str>> Display for AsUpperCamelCase<T>"],["impl<T: AsRef<str>> Display for AsShoutySnakeCase<T>"],["impl<T: AsRef<str>> Display for AsTrainCase<T>"],["impl<T: AsRef<str>> Display for AsShoutyKebabCase<T>"],["impl<T: AsRef<str>> Display for AsKebabCase<T>"],["impl<T: AsRef<str>> Display for AsLowerCamelCase<T>"],["impl<T: AsRef<str>> Display for AsTitleCase<T>"],["impl<T: AsRef<str>> Display for AsSnakeCase<T>"]], "indexmap":[["impl Display for TryReserveError"]], "libloading":[["impl Display for Error"]], "linux_api":[["impl Display for Errno"]], diff --git a/docs/rust/quote/trait.IdentFragment.html b/docs/rust/quote/trait.IdentFragment.html index 5a4a18e5a4c..841440d8227 100644 --- a/docs/rust/quote/trait.IdentFragment.html +++ b/docs/rust/quote/trait.IdentFragment.html @@ -11,5 +11,5 @@

Required Methods§

source

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

Format this value as an identifier fragment.

Provided Methods§

source

fn span(&self) -> Option<Span>

Span associated with this IdentFragment.

If non-None, may be inherited by formatted identifiers.

-

Implementations on Foreign Types§

source§

impl IdentFragment for str

source§

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

source§

impl IdentFragment for Ident

source§

fn span(&self) -> Option<Span>

source§

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

source§

impl<T> IdentFragment for Cow<'_, T>where - T: IdentFragment + ToOwned + ?Sized,

source§

fn span(&self) -> Option<Span>

source§

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

source§

impl<T: IdentFragment + ?Sized> IdentFragment for &mut T

source§

fn span(&self) -> Option<Span>

source§

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

source§

impl IdentFragment for u8

source§

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

source§

impl IdentFragment for char

source§

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

source§

impl IdentFragment for usize

source§

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

source§

impl IdentFragment for u64

source§

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

source§

impl IdentFragment for u128

source§

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

source§

impl IdentFragment for bool

source§

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

source§

impl IdentFragment for u32

source§

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

source§

impl IdentFragment for u16

source§

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

source§

impl<T: IdentFragment + ?Sized> IdentFragment for &T

source§

fn span(&self) -> Option<Span>

source§

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

source§

impl IdentFragment for String

source§

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

Implementors§

\ No newline at end of file +

Implementations on Foreign Types§

source§

impl IdentFragment for u8

source§

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

source§

impl IdentFragment for String

source§

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

source§

impl<T: IdentFragment + ?Sized> IdentFragment for &mut T

source§

fn span(&self) -> Option<Span>

source§

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

source§

impl IdentFragment for u128

source§

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

source§

impl IdentFragment for u16

source§

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

source§

impl<T> IdentFragment for Cow<'_, T>where + T: IdentFragment + ToOwned + ?Sized,

source§

fn span(&self) -> Option<Span>

source§

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

source§

impl IdentFragment for bool

source§

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

source§

impl IdentFragment for Ident

source§

fn span(&self) -> Option<Span>

source§

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

source§

impl<T: IdentFragment + ?Sized> IdentFragment for &T

source§

fn span(&self) -> Option<Span>

source§

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

source§

impl IdentFragment for u64

source§

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

source§

impl IdentFragment for u32

source§

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

source§

impl IdentFragment for str

source§

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

source§

impl IdentFragment for char

source§

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

source§

impl IdentFragment for usize

source§

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

Implementors§

\ No newline at end of file diff --git a/docs/rust/quote/trait.ToTokens.html b/docs/rust/quote/trait.ToTokens.html index 5d7419d14db..fbc517bf16d 100644 --- a/docs/rust/quote/trait.ToTokens.html +++ b/docs/rust/quote/trait.ToTokens.html @@ -41,4 +41,4 @@
Example
Self: Sized,

Convert self directly into a TokenStream object.

This method is implicitly implemented using to_tokens, and acts as a convenience method for consumers of the ToTokens trait.

-

Implementations on Foreign Types§

source§

impl ToTokens for u16

source§

fn to_tokens(&self, tokens: &mut TokenStream)

source§

impl<T: ToTokens> ToTokens for Option<T>

source§

fn to_tokens(&self, tokens: &mut TokenStream)

source§

impl ToTokens for u64

source§

fn to_tokens(&self, tokens: &mut TokenStream)

source§

impl ToTokens for f32

source§

fn to_tokens(&self, tokens: &mut TokenStream)

source§

impl<'a, T: ?Sized + ToTokens> ToTokens for &'a mut T

source§

fn to_tokens(&self, tokens: &mut TokenStream)

source§

impl<T: ?Sized + ToTokens> ToTokens for Box<T>

source§

fn to_tokens(&self, tokens: &mut TokenStream)

source§

impl ToTokens for Punct

source§

fn to_tokens(&self, tokens: &mut TokenStream)

source§

impl ToTokens for str

source§

fn to_tokens(&self, tokens: &mut TokenStream)

source§

impl ToTokens for f64

source§

fn to_tokens(&self, tokens: &mut TokenStream)

source§

impl ToTokens for i64

source§

fn to_tokens(&self, tokens: &mut TokenStream)

source§

impl ToTokens for u8

source§

fn to_tokens(&self, tokens: &mut TokenStream)

source§

impl ToTokens for Group

source§

fn to_tokens(&self, tokens: &mut TokenStream)

source§

impl ToTokens for i8

source§

fn to_tokens(&self, tokens: &mut TokenStream)

source§

impl ToTokens for isize

source§

fn to_tokens(&self, tokens: &mut TokenStream)

source§

impl ToTokens for u32

source§

fn to_tokens(&self, tokens: &mut TokenStream)

source§

impl ToTokens for TokenStream

source§

impl ToTokens for Literal

source§

fn to_tokens(&self, tokens: &mut TokenStream)

source§

impl<'a, T: ?Sized + ToOwned + ToTokens> ToTokens for Cow<'a, T>

source§

fn to_tokens(&self, tokens: &mut TokenStream)

source§

impl ToTokens for u128

source§

fn to_tokens(&self, tokens: &mut TokenStream)

source§

impl<T: ?Sized + ToTokens> ToTokens for Rc<T>

source§

fn to_tokens(&self, tokens: &mut TokenStream)

source§

impl<'a, T: ?Sized + ToTokens> ToTokens for &'a T

source§

fn to_tokens(&self, tokens: &mut TokenStream)

source§

impl ToTokens for TokenTree

source§

fn to_tokens(&self, dst: &mut TokenStream)

source§

impl ToTokens for String

source§

fn to_tokens(&self, tokens: &mut TokenStream)

source§

impl ToTokens for usize

source§

fn to_tokens(&self, tokens: &mut TokenStream)

source§

impl ToTokens for bool

source§

fn to_tokens(&self, tokens: &mut TokenStream)

source§

impl ToTokens for char

source§

fn to_tokens(&self, tokens: &mut TokenStream)

source§

impl ToTokens for i128

source§

fn to_tokens(&self, tokens: &mut TokenStream)

source§

impl ToTokens for i32

source§

fn to_tokens(&self, tokens: &mut TokenStream)

source§

impl ToTokens for Ident

source§

fn to_tokens(&self, tokens: &mut TokenStream)

source§

impl ToTokens for i16

source§

fn to_tokens(&self, tokens: &mut TokenStream)

Implementors§

\ No newline at end of file +

Implementations on Foreign Types§

source§

impl ToTokens for u8

source§

fn to_tokens(&self, tokens: &mut TokenStream)

source§

impl ToTokens for f64

source§

fn to_tokens(&self, tokens: &mut TokenStream)

source§

impl ToTokens for i64

source§

fn to_tokens(&self, tokens: &mut TokenStream)

source§

impl ToTokens for Group

source§

fn to_tokens(&self, tokens: &mut TokenStream)

source§

impl ToTokens for u32

source§

fn to_tokens(&self, tokens: &mut TokenStream)

source§

impl ToTokens for TokenStream

source§

impl<T: ?Sized + ToTokens> ToTokens for Box<T>

source§

fn to_tokens(&self, tokens: &mut TokenStream)

source§

impl ToTokens for u16

source§

fn to_tokens(&self, tokens: &mut TokenStream)

source§

impl<'a, T: ?Sized + ToTokens> ToTokens for &'a T

source§

fn to_tokens(&self, tokens: &mut TokenStream)

source§

impl<T: ?Sized + ToTokens> ToTokens for Rc<T>

source§

fn to_tokens(&self, tokens: &mut TokenStream)

source§

impl ToTokens for char

source§

fn to_tokens(&self, tokens: &mut TokenStream)

source§

impl ToTokens for u128

source§

fn to_tokens(&self, tokens: &mut TokenStream)

source§

impl ToTokens for i32

source§

fn to_tokens(&self, tokens: &mut TokenStream)

source§

impl ToTokens for usize

source§

fn to_tokens(&self, tokens: &mut TokenStream)

source§

impl<T: ToTokens> ToTokens for Option<T>

source§

fn to_tokens(&self, tokens: &mut TokenStream)

source§

impl<'a, T: ?Sized + ToTokens> ToTokens for &'a mut T

source§

fn to_tokens(&self, tokens: &mut TokenStream)

source§

impl ToTokens for bool

source§

fn to_tokens(&self, tokens: &mut TokenStream)

source§

impl ToTokens for TokenTree

source§

fn to_tokens(&self, dst: &mut TokenStream)

source§

impl ToTokens for str

source§

fn to_tokens(&self, tokens: &mut TokenStream)

source§

impl ToTokens for String

source§

fn to_tokens(&self, tokens: &mut TokenStream)

source§

impl ToTokens for f32

source§

fn to_tokens(&self, tokens: &mut TokenStream)

source§

impl ToTokens for isize

source§

fn to_tokens(&self, tokens: &mut TokenStream)

source§

impl ToTokens for i128

source§

fn to_tokens(&self, tokens: &mut TokenStream)

source§

impl ToTokens for u64

source§

fn to_tokens(&self, tokens: &mut TokenStream)

source§

impl ToTokens for i16

source§

fn to_tokens(&self, tokens: &mut TokenStream)

source§

impl ToTokens for Ident

source§

fn to_tokens(&self, tokens: &mut TokenStream)

source§

impl<'a, T: ?Sized + ToOwned + ToTokens> ToTokens for Cow<'a, T>

source§

fn to_tokens(&self, tokens: &mut TokenStream)

source§

impl ToTokens for Punct

source§

fn to_tokens(&self, tokens: &mut TokenStream)

source§

impl ToTokens for i8

source§

fn to_tokens(&self, tokens: &mut TokenStream)

source§

impl ToTokens for Literal

source§

fn to_tokens(&self, tokens: &mut TokenStream)

Implementors§

\ No newline at end of file diff --git a/docs/rust/shadow_rs/host/syscall/handler/struct.SyscallHandler.html b/docs/rust/shadow_rs/host/syscall/handler/struct.SyscallHandler.html index d17de6dcef4..9a0b65b071c 100644 --- a/docs/rust/shadow_rs/host/syscall/handler/struct.SyscallHandler.html +++ b/docs/rust/shadow_rs/host/syscall/handler/struct.SyscallHandler.html @@ -127,7 +127,7 @@ rseq_len: u32, flags: c_int, sig: u32 -) -> Result<c_int, SyscallError>
source§

impl SyscallHandler

source§

impl SyscallHandler

source

pub fn socket( ctx: &mut SyscallContext<'_, '_>, domain: c_int, socket_type: c_int, @@ -158,59 +158,59 @@ flags: c_int, addr_ptr: ForeignPtr<u8>, addr_len_ptr: ForeignPtr<socklen_t> -) -> Result<ssize_t, SyscallError>

source

pub fn recvmsg( +) -> Result<ssize_t, SyscallError>

source

pub fn recvmsg( ctx: &mut SyscallContext<'_, '_>, fd: c_int, msg_ptr: ForeignPtr<msghdr>, flags: c_int -) -> Result<ssize_t, SyscallError>

source

pub fn getsockname( +) -> Result<ssize_t, SyscallError>

source

pub fn getsockname( ctx: &mut SyscallContext<'_, '_>, fd: c_int, addr_ptr: ForeignPtr<u8>, addr_len_ptr: ForeignPtr<socklen_t> -) -> SyscallResult

source

pub fn getpeername( +) -> SyscallResult

source

pub fn getpeername( ctx: &mut SyscallContext<'_, '_>, fd: c_int, addr_ptr: ForeignPtr<u8>, addr_len_ptr: ForeignPtr<socklen_t> -) -> SyscallResult

source

pub fn listen( +) -> SyscallResult

source

pub fn listen( ctx: &mut SyscallContext<'_, '_>, fd: c_int, backlog: c_int -) -> SyscallResult

source

pub fn accept( +) -> SyscallResult

source

pub fn accept( ctx: &mut SyscallContext<'_, '_>, fd: c_int, addr_ptr: ForeignPtr<u8>, addr_len_ptr: ForeignPtr<socklen_t> -) -> SyscallResult

source

pub fn accept4( +) -> SyscallResult

source

pub fn accept4( ctx: &mut SyscallContext<'_, '_>, fd: c_int, addr_ptr: ForeignPtr<u8>, addr_len_ptr: ForeignPtr<socklen_t>, flags: c_int -) -> SyscallResult

source

pub fn connect( +) -> SyscallResult

source

pub fn connect( ctx: &mut SyscallContext<'_, '_>, fd: c_int, addr_ptr: ForeignPtr<u8>, addr_len: socklen_t -) -> SyscallResult

source

pub fn shutdown( +) -> SyscallResult

source

pub fn shutdown( ctx: &mut SyscallContext<'_, '_>, fd: c_int, how: c_int -) -> SyscallResult

source

pub fn socketpair( +) -> SyscallResult

source

pub fn socketpair( ctx: &mut SyscallContext<'_, '_>, domain: c_int, socket_type: c_int, protocol: c_int, fd_ptr: ForeignPtr<[c_int; 2]> -) -> SyscallResult

source

pub fn getsockopt( +) -> SyscallResult

source

pub fn getsockopt( ctx: &mut SyscallContext<'_, '_>, fd: c_int, level: c_int, optname: c_int, optval_ptr: ForeignPtr<()>, optlen_ptr: ForeignPtr<socklen_t> -) -> SyscallResult

source

pub fn setsockopt( +) -> SyscallResult

source

pub fn setsockopt( ctx: &mut SyscallContext<'_, '_>, fd: c_int, level: c_int, diff --git a/docs/rust/shadow_rs/utility/byte_queue/enum.BytesWrapper.html b/docs/rust/shadow_rs/utility/byte_queue/enum.BytesWrapper.html index 603eb5dc2df..306c07b441e 100644 --- a/docs/rust/shadow_rs/utility/byte_queue/enum.BytesWrapper.html +++ b/docs/rust/shadow_rs/utility/byte_queue/enum.BytesWrapper.html @@ -1,8 +1,8 @@ -BytesWrapper in shadow_rs::utility::byte_queue - Rust
pub enum BytesWrapper {
+BytesWrapper in shadow_rs::utility::byte_queue - Rust
pub enum BytesWrapper {
     Mutable(BytesMut),
     Immutable(Bytes),
 }
Expand description

A wrapper type that holds either Bytes or BytesMut.

-

Variants§

§

Mutable(BytesMut)

§

Immutable(Bytes)

Implementations§

source§

impl BytesWrapper

source

pub fn len(&self) -> usize

source

pub fn is_empty(&self) -> bool

source

pub fn split_to(&mut self, at: usize) -> BytesWrapper

Trait Implementations§

source§

impl AsRef<[u8]> for BytesWrapper

source§

fn as_ref(&self) -> &[u8]

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Borrow<[u8]> for BytesWrapper

source§

fn borrow(&self) -> &[u8]

Immutably borrows from an owned value. Read more
source§

impl From<Bytes> for BytesWrapper

source§

fn from(x: Bytes) -> Self

Converts to this type from the input type.
source§

impl From<BytesMut> for BytesWrapper

source§

fn from(x: BytesMut) -> Self

Converts to this type from the input type.
source§

impl From<BytesWrapper> for Bytes

source§

fn from(x: BytesWrapper) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +

Variants§

§

Mutable(BytesMut)

§

Immutable(Bytes)

Implementations§

source§

impl BytesWrapper

source

pub fn len(&self) -> usize

source

pub fn is_empty(&self) -> bool

source

pub fn split_to(&mut self, at: usize) -> BytesWrapper

Trait Implementations§

source§

impl AsRef<[u8]> for BytesWrapper

source§

fn as_ref(&self) -> &[u8]

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Borrow<[u8]> for BytesWrapper

source§

fn borrow(&self) -> &[u8]

Immutably borrows from an owned value. Read more
source§

impl From<Bytes> for BytesWrapper

source§

fn from(x: Bytes) -> Self

Converts to this type from the input type.
source§

impl From<BytesMut> for BytesWrapper

source§

fn from(x: BytesMut) -> Self

Converts to this type from the input type.
source§

impl From<BytesWrapper> for Bytes

source§

fn from(x: BytesWrapper) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl RefUnwindSafe for BytesWrapper

§

impl Send for BytesWrapper

§

impl Sync for BytesWrapper

§

impl Unpin for BytesWrapper

§

impl UnwindSafe for BytesWrapper

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/docs/rust/shadow_rs/utility/byte_queue/enum.ChunkType.html b/docs/rust/shadow_rs/utility/byte_queue/enum.ChunkType.html index eccdd7327ca..8c7804192a6 100644 --- a/docs/rust/shadow_rs/utility/byte_queue/enum.ChunkType.html +++ b/docs/rust/shadow_rs/utility/byte_queue/enum.ChunkType.html @@ -1,10 +1,10 @@ -ChunkType in shadow_rs::utility::byte_queue - Rust
pub enum ChunkType {
+ChunkType in shadow_rs::utility::byte_queue - Rust
pub enum ChunkType {
     Stream,
     Packet,
 }
Expand description

The types of data that are supported by the ByteQueue.

-

Variants§

§

Stream

§

Packet

Trait Implementations§

source§

impl Clone for ChunkType

source§

fn clone(&self) -> ChunkType

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 ChunkType

source§

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

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

impl PartialEq<ChunkType> for ChunkType

source§

fn eq(&self, other: &ChunkType) -> bool

This method tests for self and other values to be equal, and is used +

Variants§

§

Stream

§

Packet

Trait Implementations§

source§

impl Clone for ChunkType

source§

fn clone(&self) -> ChunkType

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 ChunkType

source§

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

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

impl PartialEq<ChunkType> for ChunkType

source§

fn eq(&self, other: &ChunkType) -> 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 Copy for ChunkType

source§

impl Eq for ChunkType

source§

impl StructuralEq for ChunkType

source§

impl StructuralPartialEq for ChunkType

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +sufficient, and should not be overridden without very good reason.

source§

impl Copy for ChunkType

source§

impl Eq for ChunkType

source§

impl StructuralEq for ChunkType

source§

impl StructuralPartialEq for ChunkType

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> DynClone for Twhere diff --git a/docs/rust/shadow_rs/utility/byte_queue/index.html b/docs/rust/shadow_rs/utility/byte_queue/index.html index 316fd0f322b..f06f8e9a742 100644 --- a/docs/rust/shadow_rs/utility/byte_queue/index.html +++ b/docs/rust/shadow_rs/utility/byte_queue/index.html @@ -1 +1 @@ -shadow_rs::utility::byte_queue - Rust

Structs

  • A queue of bytes that supports reading and writing stream and/or packet data.

Enums

\ No newline at end of file +shadow_rs::utility::byte_queue - Rust

Structs

  • A queue of bytes that supports reading and writing stream and/or packet data.

Enums

\ No newline at end of file diff --git a/docs/rust/shadow_rs/utility/byte_queue/struct.ByteQueue.html b/docs/rust/shadow_rs/utility/byte_queue/struct.ByteQueue.html index b48b8c24aa7..7f2b654dead 100644 --- a/docs/rust/shadow_rs/utility/byte_queue/struct.ByteQueue.html +++ b/docs/rust/shadow_rs/utility/byte_queue/struct.ByteQueue.html @@ -6,7 +6,7 @@

To avoid memory copies when moving bytes from one ByteQueue to another, you can use pop_chunk() to remove a chunk from the queue, and use push_chunk() to add it to another queue.

-

Implementations§

source§

impl ByteQueue

source

pub fn new(default_chunk_capacity: usize) -> Self

source

pub fn num_bytes(&self) -> usize

The number of bytes in the queue. If the queue has 0 bytes, it does not mean that the queue +

Implementations§

source§

impl ByteQueue

source

pub fn new(default_chunk_capacity: usize) -> Self

source

pub fn num_bytes(&self) -> usize

The number of bytes in the queue. If the queue has 0 bytes, it does not mean that the queue is empty since there may be 0-length packets in the queue.

source

pub fn has_bytes(&self) -> bool

Returns true if the queue has bytes.

source

pub fn has_chunks(&self) -> bool

Returns true if the queue has data/chunks, which may include packets with 0 bytes.

@@ -27,10 +27,10 @@ enough space, the remaining bytes in the packet will be dropped. Returns a tuple containing the number of bytes copied, the number of bytes removed from the queue (including dropped bytes), and the chunk type.

-
source

pub fn pop_chunk(&mut self, size_hint: usize) -> Option<(Bytes, ChunkType)>

Pop a single chunk of data from the queue. The size_hint argument is used to limit the +

source

pub fn pop_chunk(&mut self, size_hint: usize) -> Option<(Bytes, ChunkType)>

Pop a single chunk of data from the queue. The size_hint argument is used to limit the number of bytes in the returned chunk iff the next chunk has stream data. If the returned chunk has packet data, the size_hint is ignored and the entire packet is returned.

-
source

pub fn peek<W: Write>( +

source

pub fn peek<W: Write>( &self, dst: W ) -> Result<Option<(usize, usize, ChunkType)>>

Peek data from the queue. Only a single type of data will be peeked per invocation. @@ -38,7 +38,7 @@ enough space, the packet written to dst will be truncated. Returns a tuple containing the number of bytes copied, the number of bytes that would have been copied if dst had enough space (for packet chunks, the size of the packet), and the chunk type.

-

Trait Implementations§

source§

impl Drop for ByteQueue

source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +

Trait Implementations§

source§

impl Drop for ByteQueue

source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

§

impl RefUnwindSafe for ByteQueue

§

impl Send for ByteQueue

§

impl Sync for ByteQueue

§

impl Unpin for ByteQueue

§

impl UnwindSafe for ByteQueue

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/docs/rust/shadow_shim_helper_rs/simulation_time/constant.SIMTIME_INVALID.html b/docs/rust/shadow_shim_helper_rs/simulation_time/constant.SIMTIME_INVALID.html index 2ed147ed8cc..c1a6d0822d9 100644 --- a/docs/rust/shadow_shim_helper_rs/simulation_time/constant.SIMTIME_INVALID.html +++ b/docs/rust/shadow_shim_helper_rs/simulation_time/constant.SIMTIME_INVALID.html @@ -1,2 +1,2 @@ -SIMTIME_INVALID in shadow_shim_helper_rs::simulation_time - Rust
pub const SIMTIME_INVALID: CSimulationTime = u64::MAX; // 18_446_744_073_709_551_615u64
Expand description

Invalid simulation time.

+SIMTIME_INVALID in shadow_shim_helper_rs::simulation_time - Rust
pub const SIMTIME_INVALID: CSimulationTime = u64::MAX; // 18_446_744_073_709_551_615u64
Expand description

Invalid simulation time.

\ No newline at end of file diff --git a/docs/rust/shadow_shim_helper_rs/simulation_time/constant.SIMTIME_MAX.html b/docs/rust/shadow_shim_helper_rs/simulation_time/constant.SIMTIME_MAX.html index 39cdbd9a6d4..bb5923132c2 100644 --- a/docs/rust/shadow_shim_helper_rs/simulation_time/constant.SIMTIME_MAX.html +++ b/docs/rust/shadow_shim_helper_rs/simulation_time/constant.SIMTIME_MAX.html @@ -1,2 +1,2 @@ -SIMTIME_MAX in shadow_shim_helper_rs::simulation_time - Rust
pub const SIMTIME_MAX: CSimulationTime = 17500059273709551614u64;
Expand description

Maximum and minimum valid values.

+SIMTIME_MAX in shadow_shim_helper_rs::simulation_time - Rust
pub const SIMTIME_MAX: CSimulationTime = 17500059273709551614u64;
Expand description

Maximum and minimum valid values.

\ No newline at end of file diff --git a/docs/rust/shadow_shim_helper_rs/simulation_time/constant.SIMTIME_MIN.html b/docs/rust/shadow_shim_helper_rs/simulation_time/constant.SIMTIME_MIN.html index f7d69cbf1e0..238333af816 100644 --- a/docs/rust/shadow_shim_helper_rs/simulation_time/constant.SIMTIME_MIN.html +++ b/docs/rust/shadow_shim_helper_rs/simulation_time/constant.SIMTIME_MIN.html @@ -1 +1 @@ -SIMTIME_MIN in shadow_shim_helper_rs::simulation_time - Rust
pub const SIMTIME_MIN: CSimulationTime = 0u64;
\ No newline at end of file +SIMTIME_MIN in shadow_shim_helper_rs::simulation_time - Rust
pub const SIMTIME_MIN: CSimulationTime = 0u64;
\ No newline at end of file diff --git a/docs/rust/shadow_shim_helper_rs/simulation_time/constant.SIMTIME_ONE_HOUR.html b/docs/rust/shadow_shim_helper_rs/simulation_time/constant.SIMTIME_ONE_HOUR.html index 2bfeb2c181c..ed22c3de7e2 100644 --- a/docs/rust/shadow_shim_helper_rs/simulation_time/constant.SIMTIME_ONE_HOUR.html +++ b/docs/rust/shadow_shim_helper_rs/simulation_time/constant.SIMTIME_ONE_HOUR.html @@ -1,2 +1,2 @@ -SIMTIME_ONE_HOUR in shadow_shim_helper_rs::simulation_time - Rust
pub const SIMTIME_ONE_HOUR: CSimulationTime = 3600000000000u64;
Expand description

Represents one hour in simulation time.

+SIMTIME_ONE_HOUR in shadow_shim_helper_rs::simulation_time - Rust
pub const SIMTIME_ONE_HOUR: CSimulationTime = 3600000000000u64;
Expand description

Represents one hour in simulation time.

\ No newline at end of file diff --git a/docs/rust/shadow_shim_helper_rs/simulation_time/constant.SIMTIME_ONE_MICROSECOND.html b/docs/rust/shadow_shim_helper_rs/simulation_time/constant.SIMTIME_ONE_MICROSECOND.html index 7305065932f..014246ddf27 100644 --- a/docs/rust/shadow_shim_helper_rs/simulation_time/constant.SIMTIME_ONE_MICROSECOND.html +++ b/docs/rust/shadow_shim_helper_rs/simulation_time/constant.SIMTIME_ONE_MICROSECOND.html @@ -1,2 +1,2 @@ -SIMTIME_ONE_MICROSECOND in shadow_shim_helper_rs::simulation_time - Rust
pub const SIMTIME_ONE_MICROSECOND: CSimulationTime = 1000u64;
Expand description

Represents one microsecond in simulation time.

+SIMTIME_ONE_MICROSECOND in shadow_shim_helper_rs::simulation_time - Rust
pub const SIMTIME_ONE_MICROSECOND: CSimulationTime = 1000u64;
Expand description

Represents one microsecond in simulation time.

\ No newline at end of file diff --git a/docs/rust/shadow_shim_helper_rs/simulation_time/constant.SIMTIME_ONE_MILLISECOND.html b/docs/rust/shadow_shim_helper_rs/simulation_time/constant.SIMTIME_ONE_MILLISECOND.html index 2651638dd8a..2a19f159a79 100644 --- a/docs/rust/shadow_shim_helper_rs/simulation_time/constant.SIMTIME_ONE_MILLISECOND.html +++ b/docs/rust/shadow_shim_helper_rs/simulation_time/constant.SIMTIME_ONE_MILLISECOND.html @@ -1,2 +1,2 @@ -SIMTIME_ONE_MILLISECOND in shadow_shim_helper_rs::simulation_time - Rust
pub const SIMTIME_ONE_MILLISECOND: CSimulationTime = 1000000u64;
Expand description

Represents one millisecond in simulation time.

+SIMTIME_ONE_MILLISECOND in shadow_shim_helper_rs::simulation_time - Rust
pub const SIMTIME_ONE_MILLISECOND: CSimulationTime = 1000000u64;
Expand description

Represents one millisecond in simulation time.

\ No newline at end of file diff --git a/docs/rust/shadow_shim_helper_rs/simulation_time/constant.SIMTIME_ONE_MINUTE.html b/docs/rust/shadow_shim_helper_rs/simulation_time/constant.SIMTIME_ONE_MINUTE.html index 578853387a7..ed8b5386a1b 100644 --- a/docs/rust/shadow_shim_helper_rs/simulation_time/constant.SIMTIME_ONE_MINUTE.html +++ b/docs/rust/shadow_shim_helper_rs/simulation_time/constant.SIMTIME_ONE_MINUTE.html @@ -1,2 +1,2 @@ -SIMTIME_ONE_MINUTE in shadow_shim_helper_rs::simulation_time - Rust
pub const SIMTIME_ONE_MINUTE: CSimulationTime = 60000000000u64;
Expand description

Represents one minute in simulation time.

+SIMTIME_ONE_MINUTE in shadow_shim_helper_rs::simulation_time - Rust
pub const SIMTIME_ONE_MINUTE: CSimulationTime = 60000000000u64;
Expand description

Represents one minute in simulation time.

\ No newline at end of file diff --git a/docs/rust/shadow_shim_helper_rs/simulation_time/constant.SIMTIME_ONE_NANOSECOND.html b/docs/rust/shadow_shim_helper_rs/simulation_time/constant.SIMTIME_ONE_NANOSECOND.html index 5816bd95ba6..1e9b0bfc171 100644 --- a/docs/rust/shadow_shim_helper_rs/simulation_time/constant.SIMTIME_ONE_NANOSECOND.html +++ b/docs/rust/shadow_shim_helper_rs/simulation_time/constant.SIMTIME_ONE_NANOSECOND.html @@ -1,2 +1,2 @@ -SIMTIME_ONE_NANOSECOND in shadow_shim_helper_rs::simulation_time - Rust
pub const SIMTIME_ONE_NANOSECOND: CSimulationTime = 1u64;
Expand description

Represents one nanosecond in simulation time.

+SIMTIME_ONE_NANOSECOND in shadow_shim_helper_rs::simulation_time - Rust
pub const SIMTIME_ONE_NANOSECOND: CSimulationTime = 1u64;
Expand description

Represents one nanosecond in simulation time.

\ No newline at end of file diff --git a/docs/rust/shadow_shim_helper_rs/simulation_time/constant.SIMTIME_ONE_SECOND.html b/docs/rust/shadow_shim_helper_rs/simulation_time/constant.SIMTIME_ONE_SECOND.html index 626354294f2..df7da485479 100644 --- a/docs/rust/shadow_shim_helper_rs/simulation_time/constant.SIMTIME_ONE_SECOND.html +++ b/docs/rust/shadow_shim_helper_rs/simulation_time/constant.SIMTIME_ONE_SECOND.html @@ -1,2 +1,2 @@ -SIMTIME_ONE_SECOND in shadow_shim_helper_rs::simulation_time - Rust
pub const SIMTIME_ONE_SECOND: CSimulationTime = 1000000000u64;
Expand description

Represents one second in simulation time.

+SIMTIME_ONE_SECOND in shadow_shim_helper_rs::simulation_time - Rust
pub const SIMTIME_ONE_SECOND: CSimulationTime = 1000000000u64;
Expand description

Represents one second in simulation time.

\ No newline at end of file diff --git a/docs/rust/shadow_shim_helper_rs/simulation_time/export/fn.simtime_from_timespec.html b/docs/rust/shadow_shim_helper_rs/simulation_time/export/fn.simtime_from_timespec.html index 3fa6a03e535..713e842a2c5 100644 --- a/docs/rust/shadow_shim_helper_rs/simulation_time/export/fn.simtime_from_timespec.html +++ b/docs/rust/shadow_shim_helper_rs/simulation_time/export/fn.simtime_from_timespec.html @@ -1,4 +1,4 @@ -simtime_from_timespec in shadow_shim_helper_rs::simulation_time::export - Rust
#[no_mangle]
+simtime_from_timespec in shadow_shim_helper_rs::simulation_time::export - Rust
#[no_mangle]
 pub extern "C" fn simtime_from_timespec(
     val: timespec
 ) -> CSimulationTime
\ No newline at end of file diff --git a/docs/rust/shadow_shim_helper_rs/simulation_time/export/fn.simtime_from_timeval.html b/docs/rust/shadow_shim_helper_rs/simulation_time/export/fn.simtime_from_timeval.html index 2f3fd09fac9..b10ce9aa5d7 100644 --- a/docs/rust/shadow_shim_helper_rs/simulation_time/export/fn.simtime_from_timeval.html +++ b/docs/rust/shadow_shim_helper_rs/simulation_time/export/fn.simtime_from_timeval.html @@ -1,4 +1,4 @@ -simtime_from_timeval in shadow_shim_helper_rs::simulation_time::export - Rust
#[no_mangle]
+simtime_from_timeval in shadow_shim_helper_rs::simulation_time::export - Rust
#[no_mangle]
 pub extern "C" fn simtime_from_timeval(
     val: timeval
 ) -> CSimulationTime
\ No newline at end of file diff --git a/docs/rust/shadow_shim_helper_rs/simulation_time/export/fn.simtime_to_timespec.html b/docs/rust/shadow_shim_helper_rs/simulation_time/export/fn.simtime_to_timespec.html index 059ef3043c8..127d108c1b2 100644 --- a/docs/rust/shadow_shim_helper_rs/simulation_time/export/fn.simtime_to_timespec.html +++ b/docs/rust/shadow_shim_helper_rs/simulation_time/export/fn.simtime_to_timespec.html @@ -1,4 +1,4 @@ -simtime_to_timespec in shadow_shim_helper_rs::simulation_time::export - Rust
#[no_mangle]
+simtime_to_timespec in shadow_shim_helper_rs::simulation_time::export - Rust
#[no_mangle]
 pub unsafe extern "C" fn simtime_to_timespec(
     val: CSimulationTime,
     out: *mut timespec
diff --git a/docs/rust/shadow_shim_helper_rs/simulation_time/export/fn.simtime_to_timeval.html b/docs/rust/shadow_shim_helper_rs/simulation_time/export/fn.simtime_to_timeval.html
index a24d1d14c40..3dfeefa7a1c 100644
--- a/docs/rust/shadow_shim_helper_rs/simulation_time/export/fn.simtime_to_timeval.html
+++ b/docs/rust/shadow_shim_helper_rs/simulation_time/export/fn.simtime_to_timeval.html
@@ -1,4 +1,4 @@
-simtime_to_timeval in shadow_shim_helper_rs::simulation_time::export - Rust
#[no_mangle]
+simtime_to_timeval in shadow_shim_helper_rs::simulation_time::export - Rust
#[no_mangle]
 pub unsafe extern "C" fn simtime_to_timeval(
     val: CSimulationTime,
     out: *mut timeval
diff --git a/docs/rust/shadow_shim_helper_rs/simulation_time/export/index.html b/docs/rust/shadow_shim_helper_rs/simulation_time/export/index.html
index 942b5cc0112..7697bfccc1c 100644
--- a/docs/rust/shadow_shim_helper_rs/simulation_time/export/index.html
+++ b/docs/rust/shadow_shim_helper_rs/simulation_time/export/index.html
@@ -1 +1 @@
-shadow_shim_helper_rs::simulation_time::export - Rust
\ No newline at end of file +shadow_shim_helper_rs::simulation_time::export - Rust
\ No newline at end of file diff --git a/docs/rust/shadow_shim_helper_rs/simulation_time/index.html b/docs/rust/shadow_shim_helper_rs/simulation_time/index.html index 891a09af753..5573a4b4aee 100644 --- a/docs/rust/shadow_shim_helper_rs/simulation_time/index.html +++ b/docs/rust/shadow_shim_helper_rs/simulation_time/index.html @@ -1,4 +1,4 @@ -shadow_shim_helper_rs::simulation_time - Rust
Expand description

Values for working with a simulated duration. Use EmulatedTime to represent an instant in time.

+shadow_shim_helper_rs::simulation_time - Rust
Expand description

Values for working with a simulated duration. Use EmulatedTime to represent an instant in time.

In Rust, use EmulatedTime to represent an instant in time, or SimulationTime to represent a time interval. SimulationTime is meant to replace SimulationTime from the C APIs.

diff --git a/docs/rust/shadow_shim_helper_rs/simulation_time/struct.SimulationTime.html b/docs/rust/shadow_shim_helper_rs/simulation_time/struct.SimulationTime.html index eba3363d2c2..9b3023a1a5d 100644 --- a/docs/rust/shadow_shim_helper_rs/simulation_time/struct.SimulationTime.html +++ b/docs/rust/shadow_shim_helper_rs/simulation_time/struct.SimulationTime.html @@ -1,19 +1,18 @@ -SimulationTime in shadow_shim_helper_rs::simulation_time - Rust
#[repr(C)]
pub struct SimulationTime(_);

Implementations§

source§

impl SimulationTime

source

pub const MAX: SimulationTime = _

Maximum value. Currently equivalent to SIMTIME_MAX to avoid surprises +SimulationTime in shadow_shim_helper_rs::simulation_time - Rust

#[repr(C)]
pub struct SimulationTime(_);

Implementations§

source§

impl SimulationTime

source

pub const MAX: SimulationTime = _

Maximum value. Currently equivalent to SIMTIME_MAX to avoid surprises when interoperating with C, but could use Duration::MAX when the C types go away.

-
source

pub const ZERO: SimulationTime = _

source

pub const SECOND: SimulationTime = _

source

pub const MILLISECOND: SimulationTime = _

source

pub const MICROSECOND: SimulationTime = _

source

pub const NANOSECOND: SimulationTime = _

source

pub fn from_c_simtime(val: CSimulationTime) -> Option<Self>

source

pub fn to_c_simtime(val: Option<Self>) -> CSimulationTime

source

pub const fn from_duration(val: Duration) -> Self

Convert a Duration to a SimulationTime. This function exists as -a const alternative to SimulationTime::try_from(duration). May panic if the duration is -too large.

-
source

pub fn is_zero(&self) -> bool

source

pub fn is_positive(&self) -> bool

source

pub fn as_secs(&self) -> u64

source

pub fn as_millis(&self) -> u64

source

pub fn as_micros(&self) -> u64

source

pub fn as_nanos(&self) -> u128

source

pub fn as_nanos_f64(&self) -> f64

source

pub fn checked_add(self, other: Self) -> Option<Self>

source

pub fn checked_sub(self, other: Self) -> Option<Self>

source

pub fn checked_mul(self, other: u64) -> Option<Self>

source

pub fn checked_div(self, other: u64) -> Option<Self>

source

pub fn checked_rem(self, other: Self) -> Option<Self>

source

pub fn saturating_add(self, other: Self) -> Self

source

pub fn saturating_sub(self, other: Self) -> Self

source

pub fn saturating_mul(self, other: u64) -> Self

source

pub fn try_from_secs(s: u64) -> Option<Self>

source

pub fn from_secs(s: u64) -> Self

source

pub fn try_from_millis(s: u64) -> Option<Self>

source

pub fn from_millis(s: u64) -> Self

source

pub fn try_from_micros(s: u64) -> Option<Self>

source

pub fn from_micros(s: u64) -> Self

source

pub fn try_from_nanos(s: u64) -> Option<Self>

source

pub fn from_nanos(s: u64) -> Self

source

pub fn subsec_millis(&self) -> u32

source

pub fn subsec_micros(&self) -> u32

source

pub fn subsec_nanos(&self) -> u32

Trait Implementations§

source§

impl Add<SimulationTime> for EmulatedTime

§

type Output = EmulatedTime

The resulting type after applying the + operator.
source§

fn add(self, other: SimulationTime) -> Self

Performs the + operation. Read more
source§

impl Add<SimulationTime> for SimulationTime

§

type Output = SimulationTime

The resulting type after applying the + operator.
source§

fn add(self, other: Self) -> Self::Output

Performs the + operation. Read more
source§

impl AddAssign<SimulationTime> for EmulatedTime

source§

fn add_assign(&mut self, rhs: SimulationTime)

Performs the += operation. Read more
source§

impl AddAssign<SimulationTime> for SimulationTime

source§

fn add_assign(&mut self, rhs: SimulationTime)

Performs the += operation. Read more
source§

impl Clone for SimulationTime

source§

fn clone(&self) -> SimulationTime

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 SimulationTime

source§

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

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

impl Div<u32> for SimulationTime

§

type Output = SimulationTime

The resulting type after applying the / operator.
source§

fn div(self, other: u32) -> Self::Output

Performs the / operation. Read more
source§

impl DivAssign<u32> for SimulationTime

source§

fn div_assign(&mut self, rhs: u32)

Performs the /= operation. Read more
source§

impl Duration for SimulationTime

source§

const MAX: Self = Self::MAX

source§

const NANOSECOND: Self = Self::NANOSECOND

source§

const MICROSECOND: Self = Self::MICROSECOND

source§

const MILLISECOND: Self = Self::MILLISECOND

source§

const SECOND: Self = Self::SECOND

source§

const ZERO: Self = Self::ZERO

source§

fn as_micros(&self) -> u128

source§

fn as_millis(&self) -> u128

source§

fn as_nanos(&self) -> u128

source§

fn as_secs(&self) -> u64

source§

fn checked_add(self, rhs: Self) -> Option<Self>

source§

fn checked_div(self, rhs: u32) -> Option<Self>

source§

fn checked_mul(self, rhs: u32) -> Option<Self>

source§

fn checked_sub(self, rhs: Self) -> Option<Self>

source§

fn from_micros(micros: u64) -> Self

source§

fn from_millis(millis: u64) -> Self

source§

fn from_nanos(nanos: u64) -> Self

source§

fn from_secs(secs: u64) -> Self

source§

fn is_zero(&self) -> bool

source§

fn saturating_add(self, rhs: Self) -> Self

source§

fn saturating_mul(self, rhs: u32) -> Self

source§

fn saturating_sub(self, rhs: Self) -> Self

source§

fn subsec_micros(&self) -> u32

source§

fn subsec_millis(&self) -> u32

source§

fn subsec_nanos(&self) -> u32

source§

impl From<SimulationTime> for CSimulationTime

source§

fn from(val: SimulationTime) -> CSimulationTime

Converts to this type from the input type.
source§

impl From<SimulationTime> for Duration

source§

fn from(val: SimulationTime) -> Duration

Converts to this type from the input type.
source§

impl Hash for SimulationTime

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where +

source

pub const ZERO: SimulationTime = _

source

pub const SECOND: SimulationTime = _

source

pub const MILLISECOND: SimulationTime = _

source

pub const MICROSECOND: SimulationTime = _

source

pub const NANOSECOND: SimulationTime = _

source

pub fn from_c_simtime(val: CSimulationTime) -> Option<Self>

source

pub fn to_c_simtime(val: Option<Self>) -> CSimulationTime

source

pub const fn from_duration(val: Duration) -> Self

Convert a Duration to a SimulationTime. This function exists as a const +alternative to SimulationTime::try_from(duration). May panic if the duration is too large.

+
source

pub fn is_zero(&self) -> bool

source

pub fn is_positive(&self) -> bool

source

pub fn as_secs(&self) -> u64

source

pub fn as_millis(&self) -> u64

source

pub fn as_micros(&self) -> u64

source

pub fn as_nanos(&self) -> u128

source

pub fn as_nanos_f64(&self) -> f64

source

pub fn checked_add(self, other: Self) -> Option<Self>

source

pub fn checked_sub(self, other: Self) -> Option<Self>

source

pub fn checked_mul(self, other: u64) -> Option<Self>

source

pub fn checked_div(self, other: u64) -> Option<Self>

source

pub fn checked_rem(self, other: Self) -> Option<Self>

source

pub fn saturating_add(self, other: Self) -> Self

source

pub fn saturating_sub(self, other: Self) -> Self

source

pub fn saturating_mul(self, other: u64) -> Self

source

pub fn try_from_secs(s: u64) -> Option<Self>

source

pub fn from_secs(s: u64) -> Self

source

pub fn try_from_millis(s: u64) -> Option<Self>

source

pub fn from_millis(s: u64) -> Self

source

pub fn try_from_micros(s: u64) -> Option<Self>

source

pub fn from_micros(s: u64) -> Self

source

pub fn try_from_nanos(s: u64) -> Option<Self>

source

pub fn from_nanos(s: u64) -> Self

source

pub fn subsec_millis(&self) -> u32

source

pub fn subsec_micros(&self) -> u32

source

pub fn subsec_nanos(&self) -> u32

Trait Implementations§

source§

impl Add<SimulationTime> for EmulatedTime

§

type Output = EmulatedTime

The resulting type after applying the + operator.
source§

fn add(self, other: SimulationTime) -> Self

Performs the + operation. Read more
source§

impl Add<SimulationTime> for SimulationTime

§

type Output = SimulationTime

The resulting type after applying the + operator.
source§

fn add(self, other: Self) -> Self::Output

Performs the + operation. Read more
source§

impl AddAssign<SimulationTime> for EmulatedTime

source§

fn add_assign(&mut self, rhs: SimulationTime)

Performs the += operation. Read more
source§

impl AddAssign<SimulationTime> for SimulationTime

source§

fn add_assign(&mut self, rhs: SimulationTime)

Performs the += operation. Read more
source§

impl Clone for SimulationTime

source§

fn clone(&self) -> SimulationTime

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 SimulationTime

source§

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

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

impl Div<u32> for SimulationTime

§

type Output = SimulationTime

The resulting type after applying the / operator.
source§

fn div(self, other: u32) -> Self::Output

Performs the / operation. Read more
source§

impl DivAssign<u32> for SimulationTime

source§

fn div_assign(&mut self, rhs: u32)

Performs the /= operation. Read more
source§

impl Duration for SimulationTime

source§

const MAX: Self = Self::MAX

source§

const NANOSECOND: Self = Self::NANOSECOND

source§

const MICROSECOND: Self = Self::MICROSECOND

source§

const MILLISECOND: Self = Self::MILLISECOND

source§

const SECOND: Self = Self::SECOND

source§

const ZERO: Self = Self::ZERO

source§

fn as_micros(&self) -> u128

source§

fn as_millis(&self) -> u128

source§

fn as_nanos(&self) -> u128

source§

fn as_secs(&self) -> u64

source§

fn checked_add(self, rhs: Self) -> Option<Self>

source§

fn checked_div(self, rhs: u32) -> Option<Self>

source§

fn checked_mul(self, rhs: u32) -> Option<Self>

source§

fn checked_sub(self, rhs: Self) -> Option<Self>

source§

fn from_micros(micros: u64) -> Self

source§

fn from_millis(millis: u64) -> Self

source§

fn from_nanos(nanos: u64) -> Self

source§

fn from_secs(secs: u64) -> Self

source§

fn is_zero(&self) -> bool

source§

fn saturating_add(self, rhs: Self) -> Self

source§

fn saturating_mul(self, rhs: u32) -> Self

source§

fn saturating_sub(self, rhs: Self) -> Self

source§

fn subsec_micros(&self) -> u32

source§

fn subsec_millis(&self) -> u32

source§

fn subsec_nanos(&self) -> u32

source§

impl From<SimulationTime> for CSimulationTime

source§

fn from(val: SimulationTime) -> CSimulationTime

Converts to this type from the input type.
source§

impl From<SimulationTime> for Duration

source§

fn from(val: SimulationTime) -> Duration

Converts to this type from the input type.
source§

impl Hash for SimulationTime

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Mul<u32> for SimulationTime

§

type Output = SimulationTime

The resulting type after applying the * operator.
source§

fn mul(self, other: u32) -> Self::Output

Performs the * operation. Read more
source§

impl MulAssign<u32> for SimulationTime

source§

fn mul_assign(&mut self, rhs: u32)

Performs the *= operation. Read more
source§

impl Ord for SimulationTime

source§

fn cmp(&self, other: &SimulationTime) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Mul<u32> for SimulationTime

§

type Output = SimulationTime

The resulting type after applying the * operator.
source§

fn mul(self, other: u32) -> Self::Output

Performs the * operation. Read more
source§

impl MulAssign<u32> for SimulationTime

source§

fn mul_assign(&mut self, rhs: u32)

Performs the *= operation. Read more
source§

impl Ord for SimulationTime

source§

fn cmp(&self, other: &SimulationTime) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>,

Restrict a value to a certain interval. Read more
source§

impl PartialEq<SimulationTime> for SimulationTime

source§

fn eq(&self, other: &SimulationTime) -> 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 PartialOrd<SimulationTime> for SimulationTime

source§

fn partial_cmp(&self, other: &SimulationTime) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

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

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

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

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

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

This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
source§

impl Rem<SimulationTime> for SimulationTime

§

type Output = SimulationTime

The resulting type after applying the % operator.
source§

fn rem(self, other: SimulationTime) -> Self::Output

Performs the % operation. Read more
source§

impl Sub<SimulationTime> for EmulatedTime

§

type Output = EmulatedTime

The resulting type after applying the - operator.
source§

fn sub(self, other: SimulationTime) -> Self

Performs the - operation. Read more
source§

impl Sub<SimulationTime> for SimulationTime

§

type Output = SimulationTime

The resulting type after applying the - operator.
source§

fn sub(self, other: Self) -> Self::Output

Performs the - operation. Read more
source§

impl SubAssign<SimulationTime> for EmulatedTime

source§

fn sub_assign(&mut self, rhs: SimulationTime)

Performs the -= operation. Read more
source§

impl SubAssign<SimulationTime> for SimulationTime

source§

fn sub_assign(&mut self, rhs: SimulationTime)

Performs the -= operation. Read more
source§

impl TryFrom<Duration> for SimulationTime

§

type Error = ()

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

fn try_from(val: Duration) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<SimulationTime> for timespec

§

type Error = ()

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

fn try_from(value: SimulationTime) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<SimulationTime> for timespec

§

type Error = ()

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

fn try_from(value: SimulationTime) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<SimulationTime> for timeval

§

type Error = ()

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

fn try_from(value: SimulationTime) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<SimulationTime> for timeval

§

type Error = ()

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

fn try_from(value: SimulationTime) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<linux_timespec> for SimulationTime

§

type Error = ()

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

fn try_from(value: timespec) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<linux_timeval> for SimulationTime

§

type Error = ()

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

fn try_from(value: timeval) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<timespec> for SimulationTime

§

type Error = ()

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

fn try_from(value: timespec) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<timeval> for SimulationTime

§

type Error = ()

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

fn try_from(value: timeval) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl VirtualAddressSpaceIndependent for SimulationTime

source§

const IGNORE: () = _

Used by the derive macro to validate that fields are Vasi.
source§

impl Copy for SimulationTime

source§

impl Eq for SimulationTime

source§

impl StructuralEq for SimulationTime

source§

impl StructuralPartialEq for SimulationTime

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +operator. Read more

source§

impl Rem<SimulationTime> for SimulationTime

§

type Output = SimulationTime

The resulting type after applying the % operator.
source§

fn rem(self, other: SimulationTime) -> Self::Output

Performs the % operation. Read more
source§

impl Sub<SimulationTime> for EmulatedTime

§

type Output = EmulatedTime

The resulting type after applying the - operator.
source§

fn sub(self, other: SimulationTime) -> Self

Performs the - operation. Read more
source§

impl Sub<SimulationTime> for SimulationTime

§

type Output = SimulationTime

The resulting type after applying the - operator.
source§

fn sub(self, other: Self) -> Self::Output

Performs the - operation. Read more
source§

impl SubAssign<SimulationTime> for EmulatedTime

source§

fn sub_assign(&mut self, rhs: SimulationTime)

Performs the -= operation. Read more
source§

impl SubAssign<SimulationTime> for SimulationTime

source§

fn sub_assign(&mut self, rhs: SimulationTime)

Performs the -= operation. Read more
source§

impl TryFrom<Duration> for SimulationTime

§

type Error = ()

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

fn try_from(val: Duration) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<SimulationTime> for timespec

§

type Error = ()

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

fn try_from(value: SimulationTime) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<SimulationTime> for timespec

§

type Error = ()

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

fn try_from(value: SimulationTime) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<SimulationTime> for timeval

§

type Error = ()

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

fn try_from(value: SimulationTime) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<SimulationTime> for timeval

§

type Error = ()

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

fn try_from(value: SimulationTime) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<linux_timespec> for SimulationTime

§

type Error = ()

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

fn try_from(value: timespec) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<linux_timeval> for SimulationTime

§

type Error = ()

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

fn try_from(value: timeval) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<timespec> for SimulationTime

§

type Error = ()

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

fn try_from(value: timespec) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<timeval> for SimulationTime

§

type Error = ()

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

fn try_from(value: timeval) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl VirtualAddressSpaceIndependent for SimulationTime

source§

const IGNORE: () = _

Used by the derive macro to validate that fields are Vasi.
source§

impl Copy for SimulationTime

source§

impl Eq for SimulationTime

source§

impl StructuralEq for SimulationTime

source§

impl StructuralPartialEq for SimulationTime

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/docs/rust/shadow_shim_helper_rs/simulation_time/type.CSimulationTime.html b/docs/rust/shadow_shim_helper_rs/simulation_time/type.CSimulationTime.html index 14e8ec0a434..f519351a7e3 100644 --- a/docs/rust/shadow_shim_helper_rs/simulation_time/type.CSimulationTime.html +++ b/docs/rust/shadow_shim_helper_rs/simulation_time/type.CSimulationTime.html @@ -1,2 +1,2 @@ CSimulationTime in shadow_shim_helper_rs::simulation_time - Rust
pub type CSimulationTime = u64;
Expand description

The same as the type alias in the ‘main/cshadow.rs’ bindings.

-

Trait Implementations§

source§

impl From<SimulationTime> for CSimulationTime

source§

fn from(val: SimulationTime) -> CSimulationTime

Converts to this type from the input type.
\ No newline at end of file +

Trait Implementations§

source§

impl From<SimulationTime> for CSimulationTime

source§

fn from(val: SimulationTime) -> CSimulationTime

Converts to this type from the input type.
\ No newline at end of file diff --git a/docs/rust/src/shadow_rs/host/syscall/handler/socket.rs.html b/docs/rust/src/shadow_rs/host/syscall/handler/socket.rs.html index 99ca63d2ed4..97dda3dd313 100644 --- a/docs/rust/src/shadow_rs/host/syscall/handler/socket.rs.html +++ b/docs/rust/src/shadow_rs/host/syscall/handler/socket.rs.html @@ -1027,7 +1027,6 @@ 1027 1028 1029 -1030
use linux_api::errno::Errno;
 use linux_api::fcntl::DescriptorFlags;
 use log::*;
@@ -1404,7 +1403,6 @@
         } = result?;
 
         if !addr_ptr.is_null() {
-            let addr_ptr = addr_ptr;
             io::write_sockaddr_and_len(&mut mem, from_addr.as_ref(), addr_ptr, addr_len_ptr)?;
         }
 
diff --git a/docs/rust/src/shadow_rs/utility/byte_queue.rs.html b/docs/rust/src/shadow_rs/utility/byte_queue.rs.html
index 0604d5d3c1f..891b973c18b 100644
--- a/docs/rust/src/shadow_rs/utility/byte_queue.rs.html
+++ b/docs/rust/src/shadow_rs/utility/byte_queue.rs.html
@@ -777,7 +777,6 @@
 777
 778
 779
-780
 
/*
  * The Shadow Simulator
  * See LICENSE for licensing information
@@ -1008,7 +1007,6 @@
                 break;
             }
 
-            let copied = copied;
             self.length -= copied;
             total_copied += copied;
 
diff --git a/docs/rust/src/shadow_shim_helper_rs/simulation_time.rs.html b/docs/rust/src/shadow_shim_helper_rs/simulation_time.rs.html
index 33975ab7e2f..9a830568eec 100644
--- a/docs/rust/src/shadow_shim_helper_rs/simulation_time.rs.html
+++ b/docs/rust/src/shadow_shim_helper_rs/simulation_time.rs.html
@@ -1002,7 +1002,6 @@
 1002
 1003
 1004
-1005
 
/*!
 Values for working with a simulated duration. Use `EmulatedTime` to represent an instant in time.
 
@@ -1060,9 +1059,8 @@
         }
     }
 
-    /// Convert a [`Duration`](std::time::Duration) to a [`SimulationTime`]. This function exists as
-    /// a `const` alternative to `SimulationTime::try_from(duration)`. May panic if the duration is
-    /// too large.
+    /// Convert a [`Duration`] to a [`SimulationTime`]. This function exists as a `const`
+    /// alternative to `SimulationTime::try_from(duration)`. May panic if the duration is too large.
     pub const fn from_duration(val: std::time::Duration) -> Self {
         if SIMTIME_ONE_NANOSECOND != 1 {
             unreachable!();