Struct snarkvm_debug::package::BuildRequest
source · pub struct BuildRequest<N: Network> { /* private fields */ }Implementations§
source§impl<N: Network> BuildRequest<N>
impl<N: Network> BuildRequest<N>
sourcepub const fn new(
program: Program<N>,
imports: Vec<Program<N>>,
function_name: Identifier<N>
) -> Self
pub const fn new( program: Program<N>, imports: Vec<Program<N>>, function_name: Identifier<N> ) -> Self
Initializes a new build request.
sourcepub fn send(&self, endpoint: &str) -> Result<BuildResponse<N>>
pub fn send(&self, endpoint: &str) -> Result<BuildResponse<N>>
Sends the request to the given endpoint.
sourcepub const fn function_name(&self) -> &Identifier<N>
pub const fn function_name(&self) -> &Identifier<N>
Returns the function name.
Trait Implementations§
source§impl<'de, N: Network> Deserialize<'de> for BuildRequest<N>
impl<'de, N: Network> Deserialize<'de> for BuildRequest<N>
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserializes the build request from a string or bytes.
Auto Trait Implementations§
impl<N> RefUnwindSafe for BuildRequest<N>where
N: RefUnwindSafe,
<N as Environment>::Field: RefUnwindSafe,
<N as Environment>::Projective: RefUnwindSafe,
<N as Environment>::Scalar: RefUnwindSafe,
impl<N> Send for BuildRequest<N>
impl<N> Sync for BuildRequest<N>
impl<N> Unpin for BuildRequest<N>where
N: Unpin,
<N as Environment>::Field: Unpin,
<N as Environment>::Projective: Unpin,
<N as Environment>::Scalar: Unpin,
impl<N> UnwindSafe for BuildRequest<N>where
N: UnwindSafe,
<N as Environment>::Field: UnwindSafe,
<N as Environment>::Projective: UnwindSafe,
<N as Environment>::Scalar: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more