Enum AdsErrorCode

Source
#[repr(u32)]
pub enum AdsErrorCode {
Show 140 variants ERR_NOERROR = 0, ERR_INTERNAL = 1, ERR_NORTIME = 2, ERR_ALLOCLOCKEDMEM = 3, ERR_INSERTMAILBOX = 4, ERR_WRONGRECEIVEHMSG = 5, ERR_TARGETPORTNOTFOUND = 6, ERR_TARGETMACHINENOTFOUND = 7, ERR_UNKNOWNCMDID = 8, ERR_BADTASKID = 9, ERR_NOIO = 10, ERR_UNKNOWNAMSCMD = 11, ERR_WIN32ERROR = 12, ERR_PORTNOTCONNECTED = 13, ERR_INVALIDAMSLENGTH = 14, ERR_INVALIDAMSNETID = 15, ERR_LOWINSTLEVEL = 16, ERR_NODEBUGINTAVAILABLE = 17, ERR_PORTDISABLED = 18, ERR_PORTALREADYCONNECTED = 19, ERR_AMSSYNC_W32ERROR = 20, ERR_AMSSYNC_TIMEOUT = 21, ERR_AMSSYNC_AMSERROR = 22, ERR_AMSSYNC_NOINDEXINMAP = 23, ERR_INVALIDAMSPORT = 24, ERR_NOMEMORY = 25, ERR_TCPSEND = 26, ERR_HOSTUNREACHABLE = 27, ERR_INVALIDAMSFRAGMENT = 28, ERR_TLSSEND = 29, ERR_ACCESSDENIED = 30, ROUTERERR_NOLOCKEDMEMORY = 1_280, ROUTERERR_RESIZEMEMORY = 1_281, ROUTERERR_MAILBOXFULL = 1_282, ROUTERERR_DEBUGBOXFULL = 1_283, ROUTERERR_UNKNOWNPORTTYPE = 1_284, ROUTERERR_NOTINITIALIZED = 1_285, ROUTERERR_PORTALREADYINUSE = 1_286, ROUTERERR_NOTREGISTERED = 1_287, ROUTERERR_NOMOREQUEUES = 1_288, ROUTERERR_INVALIDPORT = 1_289, ROUTERERR_NOTACTIVATED = 1_290, ROUTERERR_FRAGMENTBOXFULL = 1_291, ROUTERERR_FRAGMENTTIMEOUT = 1_292, ROUTERERR_TOBEREMOVED = 1_293, ADSERR_DEVICE_ERROR = 1_792, ADSERR_DEVICE_SRVNOTSUPP = 1_793, ADSERR_DEVICE_INVALIDGRP = 1_794, ADSERR_DEVICE_INVALIDOFFSET = 1_795, ADSERR_DEVICE_INVALIDACCESS = 1_796, ADSERR_DEVICE_INVALIDSIZE = 1_797, ADSERR_DEVICE_INVALIDDATA = 1_798, ADSERR_DEVICE_NOTREADY = 1_799, ADSERR_DEVICE_BUSY = 1_800, ADSERR_DEVICE_INVALIDCONTEXT = 1_801, ADSERR_DEVICE_NOMEMORY = 1_802, ADSERR_DEVICE_INVALIDPARM = 1_803, ADSERR_DEVICE_NOTFOUND = 1_804, ADSERR_DEVICE_SYNTAX = 1_805, ADSERR_DEVICE_INCOMPATIBLE = 1_806, ADSERR_DEVICE_EXISTS = 1_807, ADSERR_DEVICE_SYMBOLNOTFOUND = 1_808, ADSERR_DEVICE_SYMBOLVERSIONINVALID = 1_809, ADSERR_DEVICE_INVALIDSTATE = 1_810, ADSERR_DEVICE_TRANSMODENOTSUPP = 1_811, ADSERR_DEVICE_NOTIFYHNDINVALID = 1_812, ADSERR_DEVICE_CLIENTUNKNOWN = 1_813, ADSERR_DEVICE_NOMOREHDLS = 1_814, ADSERR_DEVICE_INVALIDWATCHSIZE = 1_815, ADSERR_DEVICE_NOTINIT = 1_816, ADSERR_DEVICE_TIMEOUT = 1_817, ADSERR_DEVICE_NOINTERFACE = 1_818, ADSERR_DEVICE_INVALIDINTERFACE = 1_819, ADSERR_DEVICE_INVALIDCLSID = 1_820, ADSERR_DEVICE_INVALIDOBJID = 1_821, ADSERR_DEVICE_PENDING = 1_822, ADSERR_DEVICE_ABORTED = 1_823, ADSERR_DEVICE_WARNING = 1_824, ADSERR_DEVICE_INVALIDARRAYIDX = 1_825, ADSERR_DEVICE_SYMBOLNOTACTIVE = 1_826, ADSERR_DEVICE_ACCESSDENIED = 1_827, ADSERR_DEVICE_LICENSENOTFOUND = 1_828, ADSERR_DEVICE_LICENSEEXPIRED = 1_829, ADSERR_DEVICE_LICENSEEXCEEDED = 1_830, ADSERR_DEVICE_LICENSEINVALID = 1_831, ADSERR_DEVICE_LICENSESYSTEMID = 1_832, ADSERR_DEVICE_LICENSENOTIMELIMIT = 1_833, ADSERR_DEVICE_LICENSEFUTUREISSUE = 1_834, ADSERR_DEVICE_LICENSETIMETOLONG = 1_835, ADSERR_DEVICE_EXCEPTION = 1_836, ADSERR_DEVICE_LICENSEDUPLICATED = 1_837, ADSERR_DEVICE_SIGNATUREINVALID = 1_838, ADSERR_DEVICE_CERTIFICATEINVALID = 1_839, ADSERR_DEVICE_LICENSEOEMNOTFOUND = 1_840, ADSERR_DEVICE_LICENSERESTRICTED = 1_841, ADSERR_DEVICE_LICENSEDEMODENIED = 1_842, ADSERR_DEVICE_INVALIDFNCID = 1_843, ADSERR_DEVICE_OUTOFRANGE = 1_844, ADSERR_DEVICE_INVALIDALIGNMENT = 1_845, ADSERR_DEVICE_LICENSEPLATFORM = 1_846, ADSERR_DEVICE_FORWARD_PL = 1_847, ADSERR_DEVICE_FORWARD_DL = 1_848, ADSERR_DEVICE_FORWARD_RT = 1_849, ADSERR_CLIENT_ERROR = 1_856, ADSERR_CLIENT_INVALIDPARM = 1_857, ADSERR_CLIENT_LISTEMPTY = 1_858, ADSERR_CLIENT_VARUSED = 1_859, ADSERR_CLIENT_DUPLINVOKEID = 1_860, ADSERR_CLIENT_SYNCTIMEOUT = 1_861, ADSERR_CLIENT_W32ERROR = 1_862, ADSERR_CLIENT_TIMEOUTINVALID = 1_863, ADSERR_CLIENT_PORTNOTOPEN = 1_864, ADSERR_CLIENT_NOAMSADDR = 1_865, ADSERR_CLIENT_SYNCINTERNAL = 1_872, ADSERR_CLIENT_ADDHASH = 1_873, ADSERR_CLIENT_REMOVEHASH = 1_874, ADSERR_CLIENT_NOMORESYM = 1_875, ADSERR_CLIENT_SYNCRESINVALID = 1_876, ADSERR_CLIENT_SYNCPORTLOCKED = 1_877, ADSERR_CLIENT_REQUESTCANCELLED = 1_878, RTERR_INTERNAL = 4_096, RTERR_BADTIMERPERIODS = 4_097, RTERR_INVALIDTASKPTR = 4_098, RTERR_INVALIDSTACKPTR = 4_099, RTERR_PRIOEXISTS = 4_100, RTERR_NOMORETCB = 4_101, RTERR_NOMORESEMAS = 4_102, RTERR_NOMOREQUEUES = 4_103, RTERR_EXTIRQALREADYDEF = 4_109, RTERR_EXTIRQNOTDEF = 4_110, RTERR_EXTIRQINSTALLFAILED = 4_111, RTERR_IRQLNOTLESSOREQUAL = 4_112, RTERR_VMXNOTSUPPORTED = 4_119, RTERR_VMXDISABLED = 4_120, RTERR_VMXCONTROLSMISSING = 4_121, RTERR_VMXENABLEFAILS = 4_122, WSAETIMEDOUT = 10_060, WSAECONNREFUSED = 10_061, WSAEHOSTUNREACH = 10_065, UNKNOWN = 10066,
}

Variants§

§

ERR_NOERROR = 0

No error.

§

ERR_INTERNAL = 1

Internal error.

§

ERR_NORTIME = 2

No real time.

§

ERR_ALLOCLOCKEDMEM = 3

Allocation locked – memory error.

§

ERR_INSERTMAILBOX = 4

Mailbox full – the ADS message could not be sent. Reducing the number of ADS messages per cycle will help.

§

ERR_WRONGRECEIVEHMSG = 5

Wrong HMSG.

§

ERR_TARGETPORTNOTFOUND = 6

Target port not found – ADS server is not started or is not reachable.

§

ERR_TARGETMACHINENOTFOUND = 7

Target computer not found – AMS route was not found.

§

ERR_UNKNOWNCMDID = 8

Unknown command ID.

§

ERR_BADTASKID = 9

Invalid task ID.

§

ERR_NOIO = 10

No IO.

§

ERR_UNKNOWNAMSCMD = 11

Unknown AMS command.

§

ERR_WIN32ERROR = 12

Win32 error.

§

ERR_PORTNOTCONNECTED = 13

Port not connected.

§

ERR_INVALIDAMSLENGTH = 14

Invalid AMS length.

§

ERR_INVALIDAMSNETID = 15

Invalid AMS Net ID.

§

ERR_LOWINSTLEVEL = 16

Installation level is too low –TwinCAT 2 license error.

§

ERR_NODEBUGINTAVAILABLE = 17

No debugging available.

§

ERR_PORTDISABLED = 18

Port disabled – TwinCAT system service not started.

§

ERR_PORTALREADYCONNECTED = 19

Port already connected.

§

ERR_AMSSYNC_W32ERROR = 20

AMS Sync Win32 error.

§

ERR_AMSSYNC_TIMEOUT = 21

AMS Sync Timeout.

§

ERR_AMSSYNC_AMSERROR = 22

AMS Sync error.

§

ERR_AMSSYNC_NOINDEXINMAP = 23

No index map for AMS Sync available.

§

ERR_INVALIDAMSPORT = 24

Invalid AMS port.

§

ERR_NOMEMORY = 25

No memory.

§

ERR_TCPSEND = 26

TCP send error.

§

ERR_HOSTUNREACHABLE = 27

Host unreachable.

§

ERR_INVALIDAMSFRAGMENT = 28

Invalid AMS fragment.

§

ERR_TLSSEND = 29

TLS send error – secure ADS connection failed.

§

ERR_ACCESSDENIED = 30

Access denied – secure ADS access denied.

§

ROUTERERR_NOLOCKEDMEMORY = 1_280

Locked memory cannot be allocated.

§

ROUTERERR_RESIZEMEMORY = 1_281

The router memory size could not be changed.

§

ROUTERERR_MAILBOXFULL = 1_282

The mailbox has reached the maximum number of possible messages.

§

ROUTERERR_DEBUGBOXFULL = 1_283

The Debug mailbox has reached the maximum number of possible messages.

§

ROUTERERR_UNKNOWNPORTTYPE = 1_284

The port type is unknown.

§

ROUTERERR_NOTINITIALIZED = 1_285

The router is not initialized.

§

ROUTERERR_PORTALREADYINUSE = 1_286

The port number is already assigned.

§

ROUTERERR_NOTREGISTERED = 1_287

The port is not registered.

§

ROUTERERR_NOMOREQUEUES = 1_288

The maximum number of ports has been reached.

§

ROUTERERR_INVALIDPORT = 1_289

The port is invalid.

§

ROUTERERR_NOTACTIVATED = 1_290

The router is not active.

§

ROUTERERR_FRAGMENTBOXFULL = 1_291

The mailbox has reached the maximum number for fragmented messages.

§

ROUTERERR_FRAGMENTTIMEOUT = 1_292

A fragment timeout has occurred.

§

ROUTERERR_TOBEREMOVED = 1_293

The port is removed.

§

ADSERR_DEVICE_ERROR = 1_792

General device error.

§

ADSERR_DEVICE_SRVNOTSUPP = 1_793

Service is not supported by the server.

§

ADSERR_DEVICE_INVALIDGRP = 1_794

Invalid index group.

§

ADSERR_DEVICE_INVALIDOFFSET = 1_795

Invalid index offset.

§

ADSERR_DEVICE_INVALIDACCESS = 1_796

Reading or writing not permitted.

§

ADSERR_DEVICE_INVALIDSIZE = 1_797

Parameter size not correct.

§

ADSERR_DEVICE_INVALIDDATA = 1_798

Invalid data values.

§

ADSERR_DEVICE_NOTREADY = 1_799

Device is not ready to operate.

§

ADSERR_DEVICE_BUSY = 1_800

Device is busy.

§

ADSERR_DEVICE_INVALIDCONTEXT = 1_801

Invalid operating system context. This can result from use of ADS blocks in different tasks. It may be possible to resolve this through multitasking synchronization in the PLC.

§

ADSERR_DEVICE_NOMEMORY = 1_802

Insufficient memory.

§

ADSERR_DEVICE_INVALIDPARM = 1_803

Invalid parameter values.

§

ADSERR_DEVICE_NOTFOUND = 1_804

Not found (files, …).

§

ADSERR_DEVICE_SYNTAX = 1_805

Syntax error in file or command.

§

ADSERR_DEVICE_INCOMPATIBLE = 1_806

Objects do not match.

§

ADSERR_DEVICE_EXISTS = 1_807

Object already exists.

§

ADSERR_DEVICE_SYMBOLNOTFOUND = 1_808

Symbol not found.

§

ADSERR_DEVICE_SYMBOLVERSIONINVALID = 1_809

Invalid symbol version. This can occur due to an online change. Create a new handle.

§

ADSERR_DEVICE_INVALIDSTATE = 1_810

Device (server) is in invalid state.

§

ADSERR_DEVICE_TRANSMODENOTSUPP = 1_811

AdsTransMode not supported.

§

ADSERR_DEVICE_NOTIFYHNDINVALID = 1_812

Notification handle is invalid.

§

ADSERR_DEVICE_CLIENTUNKNOWN = 1_813

Notification client not registered.

§

ADSERR_DEVICE_NOMOREHDLS = 1_814

No further handle available.

§

ADSERR_DEVICE_INVALIDWATCHSIZE = 1_815

Notification size too large.

§

ADSERR_DEVICE_NOTINIT = 1_816

Device not initialized.

§

ADSERR_DEVICE_TIMEOUT = 1_817

Device has a timeout.

§

ADSERR_DEVICE_NOINTERFACE = 1_818

Interface query failed.

§

ADSERR_DEVICE_INVALIDINTERFACE = 1_819

Wrong interface requested.

§

ADSERR_DEVICE_INVALIDCLSID = 1_820

Class ID is invalid.

§

ADSERR_DEVICE_INVALIDOBJID = 1_821

Object ID is invalid.

§

ADSERR_DEVICE_PENDING = 1_822

Request pending.

§

ADSERR_DEVICE_ABORTED = 1_823

Request is aborted.

§

ADSERR_DEVICE_WARNING = 1_824

Signal warning.

§

ADSERR_DEVICE_INVALIDARRAYIDX = 1_825

Invalid array index.

§

ADSERR_DEVICE_SYMBOLNOTACTIVE = 1_826

Symbol not active.

§

ADSERR_DEVICE_ACCESSDENIED = 1_827

Access denied.

§

ADSERR_DEVICE_LICENSENOTFOUND = 1_828

Missing license.

§

ADSERR_DEVICE_LICENSEEXPIRED = 1_829

License expired.

§

ADSERR_DEVICE_LICENSEEXCEEDED = 1_830

License exceeded.

§

ADSERR_DEVICE_LICENSEINVALID = 1_831

Invalid license.

§

ADSERR_DEVICE_LICENSESYSTEMID = 1_832

License problem: System ID is invalid.

§

ADSERR_DEVICE_LICENSENOTIMELIMIT = 1_833

License not limited in time.

§

ADSERR_DEVICE_LICENSEFUTUREISSUE = 1_834

Licensing problem: time in the future.

§

ADSERR_DEVICE_LICENSETIMETOLONG = 1_835

License period too long.

§

ADSERR_DEVICE_EXCEPTION = 1_836

Exception at system startup.

§

ADSERR_DEVICE_LICENSEDUPLICATED = 1_837

License file read twice.

§

ADSERR_DEVICE_SIGNATUREINVALID = 1_838

Invalid signature.

§

ADSERR_DEVICE_CERTIFICATEINVALID = 1_839

Invalid certificate.

§

ADSERR_DEVICE_LICENSEOEMNOTFOUND = 1_840

Public key not known from OEM.

§

ADSERR_DEVICE_LICENSERESTRICTED = 1_841

License not valid for this system ID.

§

ADSERR_DEVICE_LICENSEDEMODENIED = 1_842

Demo license prohibited.

§

ADSERR_DEVICE_INVALIDFNCID = 1_843

Invalid function ID.

§

ADSERR_DEVICE_OUTOFRANGE = 1_844

Outside the valid range.

§

ADSERR_DEVICE_INVALIDALIGNMENT = 1_845

Invalid alignment.

§

ADSERR_DEVICE_LICENSEPLATFORM = 1_846

Invalid platform level.

§

ADSERR_DEVICE_FORWARD_PL = 1_847

Context – forward to passive level.

§

ADSERR_DEVICE_FORWARD_DL = 1_848

Context – forward to dispatch level.

§

ADSERR_DEVICE_FORWARD_RT = 1_849

Context – forward to real time.

§

ADSERR_CLIENT_ERROR = 1_856

Client error.

§

ADSERR_CLIENT_INVALIDPARM = 1_857

Service contains an invalid parameter.

§

ADSERR_CLIENT_LISTEMPTY = 1_858

Polling list is empty.

§

ADSERR_CLIENT_VARUSED = 1_859

Var connection already in use.

§

ADSERR_CLIENT_DUPLINVOKEID = 1_860

The called ID is already in use.

§

ADSERR_CLIENT_SYNCTIMEOUT = 1_861

Timeout has occurred – the remote terminal is not responding in the specified ADS timeout. The route setting of the remote terminal may be configured incorrectly.

§

ADSERR_CLIENT_W32ERROR = 1_862

Error in Win32 subsystem.

§

ADSERR_CLIENT_TIMEOUTINVALID = 1_863

Invalid client timeout value.

§

ADSERR_CLIENT_PORTNOTOPEN = 1_864

Port not open.

§

ADSERR_CLIENT_NOAMSADDR = 1_865

No AMS address.

§

ADSERR_CLIENT_SYNCINTERNAL = 1_872

Internal error in Ads sync.

§

ADSERR_CLIENT_ADDHASH = 1_873

Hash table overflow.

§

ADSERR_CLIENT_REMOVEHASH = 1_874

Key not found in the table.

§

ADSERR_CLIENT_NOMORESYM = 1_875

No symbols in the cache.

§

ADSERR_CLIENT_SYNCRESINVALID = 1_876

Invalid response received.

§

ADSERR_CLIENT_SYNCPORTLOCKED = 1_877

Sync Port is locked.

§

ADSERR_CLIENT_REQUESTCANCELLED = 1_878

The request was cancelled.

§

RTERR_INTERNAL = 4_096

Internal error in the real-time system.

§

RTERR_BADTIMERPERIODS = 4_097

Timer value is not valid.

§

RTERR_INVALIDTASKPTR = 4_098

Task pointer has the invalid value 0 (zero).

§

RTERR_INVALIDSTACKPTR = 4_099

Stack pointer has the invalid value 0 (zero).

§

RTERR_PRIOEXISTS = 4_100

The request task priority is already assigned.

§

RTERR_NOMORETCB = 4_101

No free TCB (Task Control Block) available. The maximum number of TCBs is 64.

§

RTERR_NOMORESEMAS = 4_102

No free semaphores available. The maximum number of semaphores is 64.

§

RTERR_NOMOREQUEUES = 4_103

No free space available in the queue. The maximum number of positions in the queue is 64.

§

RTERR_EXTIRQALREADYDEF = 4_109

An external synchronization interrupt is already applied.

§

RTERR_EXTIRQNOTDEF = 4_110

No external sync interrupt applied.

§

RTERR_EXTIRQINSTALLFAILED = 4_111

Application of the external synchronization interrupt has failed.

§

RTERR_IRQLNOTLESSOREQUAL = 4_112

Call of a service function in the wrong context

§

RTERR_VMXNOTSUPPORTED = 4_119

Intel VT-x extension is not supported.

§

RTERR_VMXDISABLED = 4_120

Intel VT-x extension is not enabled in the BIOS.

§

RTERR_VMXCONTROLSMISSING = 4_121

Missing function in Intel VT-x extension.

§

RTERR_VMXENABLEFAILS = 4_122

Activation of Intel VT-x fails.

§

WSAETIMEDOUT = 10_060

A connection timeout has occurred - error while establishing the connection, because the remote terminal did not respond properly after a certain period of time, or the established connection could not be maintained because the connected host did not respond.

§

WSAECONNREFUSED = 10_061

Connection refused - no connection could be established because the target computer has explicitly rejected it. This error usually results from an attempt to connect to a service that is inactive on the external host, that is, a service for which no server application is running.

§

WSAEHOSTUNREACH = 10_065

No route to host - a socket operation referred to an unavailable host.

§

UNKNOWN = 10066

Unknown ads error

Trait Implementations§

Source§

impl Clone for AdsErrorCode

Source§

fn clone(&self) -> AdsErrorCode

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 AdsErrorCode

Source§

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

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

impl From<AdsError> for AdsErrorCode

Source§

fn from(value: AdsError) -> Self

Converts to this type from the input type.
Source§

impl From<AdsErrorCode> for u32

Source§

fn from(enum_value: AdsErrorCode) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for AdsErrorCode

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for AdsErrorCode

Source§

fn partial_cmp(&self, other: &AdsErrorCode) -> 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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl TryFrom<u32> for AdsErrorCode

Source§

type Error = TryFromPrimitiveError<AdsErrorCode>

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

fn try_from(number: u32) -> Result<Self, TryFromPrimitiveError<Self>>

Performs the conversion.
Source§

impl TryFromPrimitive for AdsErrorCode

Source§

impl Copy for AdsErrorCode

Source§

impl Eq for AdsErrorCode

Source§

impl StructuralPartialEq for AdsErrorCode

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> 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, dest: *mut u8)

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

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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